mirror of
https://github.com/cc65/cc65.git
synced 2025-01-10 03:30:05 +00:00
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
This commit is contained in:
parent
e128341854
commit
8559581d9f
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user