From: uz Date: Fri, 5 Aug 2011 12:33:21 +0000 (+0000) Subject: Introduce some shorter aliases for attribute names in the debug info file. X-Git-Tag: V2.13.3~341 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f912ea4010c6fef279106a29c9c06a6f7d4f8062;p=cc65 Introduce some shorter aliases for attribute names in the debug info file. git-svn-id: svn://svn.cc65.org/cc65/trunk@5121 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/dbginfo/dbginfo.c b/src/dbginfo/dbginfo.c index bd83cb47c..dbe9f7315 100644 --- a/src/dbginfo/dbginfo.c +++ b/src/dbginfo/dbginfo.c @@ -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;