mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 02:32:06 +00:00
Remove arbitrary limits on charmap
They were made irrelevant when switching to a trie
This commit is contained in:
@@ -1094,7 +1094,7 @@ charmap : T_POP_CHARMAP string ',' const {
|
|||||||
warning(WARNING_TRUNCATION, "Expression must be 8-bit");
|
warning(WARNING_TRUNCATION, "Expression must be 8-bit");
|
||||||
|
|
||||||
if (charmap_Add($2, $4 & 0xFF) == -1)
|
if (charmap_Add($2, $4 & 0xFF) == -1)
|
||||||
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 adding new charmap mapping: %s\n", strerror(errno));
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|||||||
@@ -144,9 +144,6 @@ int32_t charmap_Add(char *input, uint8_t output)
|
|||||||
struct Charmap *charmap = currentCharmap;
|
struct Charmap *charmap = currentCharmap;
|
||||||
struct Charnode *curr_node, *temp_node;
|
struct Charnode *curr_node, *temp_node;
|
||||||
|
|
||||||
if (charmap->charCount >= MAXCHARMAPS || strlen(input) > CHARMAPLENGTH)
|
|
||||||
return -1;
|
|
||||||
|
|
||||||
curr_node = &charmap->nodes[0];
|
curr_node = &charmap->nodes[0];
|
||||||
|
|
||||||
for (i = 0; (v = (uint8_t)input[i]); i++) {
|
for (i = 0; (v = (uint8_t)input[i]); i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user