From: cuz Date: Sat, 8 Jan 2005 21:08:59 +0000 (+0000) Subject: Fixed several places were CfgName was used directly instead of calling X-Git-Tag: V2.12.0~478 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8559581d9f2be04e4865aaafe8758d907e657cff;p=cc65 Fixed several places were CfgName was used directly instead of calling CfgGetName(). The former may be NULL, while the latter maps that to a string like "builtin config". git-svn-id: svn://svn.cc65.org/cc65/trunk@3358 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/ld65/scanner.c b/src/ld65/scanner.c index 82a040107..5576a32d3 100644 --- a/src/ld65/scanner.c +++ b/src/ld65/scanner.c @@ -197,7 +197,7 @@ Again: if (C == '$') { NextChar (); if (!isxdigit (C)) { - Error ("%s(%u): Hex digit expected", CfgName, InputLine); + Error ("%s(%u): Hex digit expected", CfgGetName(), InputLine); } CfgIVal = 0; while (isxdigit (C)) { @@ -316,7 +316,7 @@ Again: break; default: - Error ("%s(%u): Invalid character `%c'", CfgName, InputLine, C); + Error ("%s(%u): Invalid character `%c'", CfgGetName(), InputLine, C); } } @@ -436,7 +436,7 @@ void CfgSpecialToken (const IdentTok* Table, unsigned Size, const char* Name) } /* Not found or no identifier */ - Error ("%s(%u): %s expected", CfgName, InputLine, Name); + Error ("%s(%u): %s expected", CfgGetName(), InputLine, Name); }