]> git.sur5r.net Git - cc65/commitdiff
Introduce some shorter aliases for attribute names in the debug info file.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 5 Aug 2011 12:33:21 +0000 (12:33 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 5 Aug 2011 12:33:21 +0000 (12:33 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@5121 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/dbginfo/dbginfo.c

index bd83cb47c25716c766c6e0589117e82badf59730..dbe9f73155bd38d7e2b0f8cdead7179141eae00b 100644 (file)
@@ -1667,35 +1667,41 @@ static void NextToken (InputData* D)
         const char      Keyword[16];
         Token           Tok;
     } KeywordTable[] = {
-        { "absolute",   TOK_ABSOLUTE    },
+        { "abs",        TOK_ABSOLUTE    },
+        { "absolute",   TOK_ABSOLUTE    },      /* obsolete */
         { "addrsize",   TOK_ADDRSIZE    },
         { "count",      TOK_COUNT       },
-        { "equate",     TOK_EQUATE      },
+        { "equ",        TOK_EQUATE      },
+        { "equate",     TOK_EQUATE      },      /* obsolete */
         { "file",       TOK_FILE        },
         { "id",         TOK_ID          },
-        { "label",      TOK_LABEL       },
+        { "lab",        TOK_LABEL       },
+        { "label",      TOK_LABEL       },      /* obsolete */
         { "line",       TOK_LINE        },
         { "long",       TOK_LONG        },
         { "major",      TOK_MAJOR       },
         { "minor",      TOK_MINOR       },
         { "mtime",      TOK_MTIME       },
         { "name",       TOK_NAME        },
-        { "outputname", TOK_OUTPUTNAME  },
-        { "outputoffs", TOK_OUTPUTOFFS  },
+        { "oname",      TOK_OUTPUTNAME  },
+        { "ooffs",      TOK_OUTPUTOFFS  },
+        { "outputname", TOK_OUTPUTNAME  },      /* obsolete */
+        { "outputoffs", TOK_OUTPUTOFFS  },      /* obsolete */
         { "parent",     TOK_PARENT      },
         { "range",      TOK_RANGE       },
         { "ro",         TOK_RO          },
         { "rw",         TOK_RW          },
         { "scope",      TOK_SCOPE       },
         { "seg",        TOK_SEGMENT     },
-        { "segment",    TOK_SEGMENT     },
+        { "segment",    TOK_SEGMENT     },      /* obsolete */
         { "size",       TOK_SIZE        },
         { "start",      TOK_START       },
         { "sym",        TOK_SYM         },
         { "type",       TOK_TYPE        },
         { "value",      TOK_VALUE       },
         { "version",    TOK_VERSION     },
-        { "zeropage",   TOK_ZEROPAGE    },
+        { "zeropage",   TOK_ZEROPAGE    },      /* obsolete */
+        { "zp",         TOK_ZEROPAGE    },
     };
 
 
@@ -3152,7 +3158,7 @@ static int FindLineInfoByLine (Collection* LineInfos, cc65_line Line,
 
 static void ProcessSymInfo (InputData* D)
 /* Postprocess symbol infos */
-{          
+{
     /* Get pointers to the symbol info collections */
     Collection* SymInfoById   = &D->Info->SymInfoById;
     Collection* SymInfoByName = &D->Info->SymInfoByName;