mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-22 03:02:06 +00:00
Only output a single error with charmaps
This commit is contained in:
@@ -1004,10 +1004,8 @@ charmap : T_POP_CHARMAP string comma const
|
|||||||
if ((value & 0xFF) != value)
|
if ((value & 0xFF) != value)
|
||||||
warning(WARNING_TRUNCATION, "Expression must be 8-bit");
|
warning(WARNING_TRUNCATION, "Expression must be 8-bit");
|
||||||
|
|
||||||
if (charmap_Add($2, value & 0xFF) == -1) {
|
if (charmap_Add($2, value & 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. 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.");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user