From 8559581d9f2be04e4865aaafe8758d907e657cff Mon Sep 17 00:00:00 2001 From: cuz Date: Sat, 8 Jan 2005 21:08:59 +0000 Subject: [PATCH] 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 --- src/ld65/scanner.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } -- 2.39.5