Fixed error handling for missing names in ld65 configure files.
This commit is contained in:
@@ -490,7 +490,6 @@ void CfgSpecialToken (const IdentTok* Table, unsigned Size, const char* Name)
|
|||||||
|
|
||||||
/* We need an identifier */
|
/* We need an identifier */
|
||||||
if (CfgTok == CFGTOK_IDENT) {
|
if (CfgTok == CFGTOK_IDENT) {
|
||||||
|
|
||||||
/* Make it upper case */
|
/* Make it upper case */
|
||||||
SB_ToUpper (&CfgSVal);
|
SB_ToUpper (&CfgSVal);
|
||||||
|
|
||||||
@@ -502,10 +501,13 @@ void CfgSpecialToken (const IdentTok* Table, unsigned Size, const char* Name)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Not found */
|
||||||
|
CfgError (&CfgErrorPos, "%s expected, got '%s'", Name, SB_GetConstBuf(&CfgSVal));
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Not found or no identifier */
|
/* No identifier */
|
||||||
CfgError (&CfgErrorPos, "%s expected, got '%s'", Name, SB_GetConstBuf(&CfgSVal));
|
CfgError (&CfgErrorPos, "%s expected", Name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user