mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 18:52:07 +00:00
Remove ambiguous charmap syntax
The syntax was `charmap "anything", "string"`; the second string was already handled by `const`, but to the same effect... the ambiguous declaration has been removed, leaving us at "only" two reduce/reduce conflicts.
This commit is contained in:
@@ -997,14 +997,7 @@ incbin : T_POP_INCBIN string
|
||||
}
|
||||
;
|
||||
|
||||
charmap : T_POP_CHARMAP string comma string
|
||||
{
|
||||
if (charmap_Add($2, $4[0] & 0xFF) == -1) {
|
||||
fprintf(stderr, "Error parsing charmap. Either you've added too many (%i), or the input character length is too long (%i)' : %s\n", MAXCHARMAPS, CHARMAPLENGTH, strerror(errno));
|
||||
yyerror("Error parsing charmap.");
|
||||
}
|
||||
}
|
||||
| T_POP_CHARMAP string comma const
|
||||
charmap : T_POP_CHARMAP string comma const
|
||||
{
|
||||
if (charmap_Add($2, constexpr_GetConstantValue(&$4) & 0xFF) == -1) {
|
||||
fprintf(stderr, "Error parsing charmap. Either you've added too many (%i), or the input character length is too long (%i)' : %s\n", MAXCHARMAPS, CHARMAPLENGTH, strerror(errno));
|
||||
|
||||
Reference in New Issue
Block a user