Remove arbitrary limits on charmap

They were made irrelevant when switching to a trie
This commit is contained in:
ISSOtm
2020-08-31 21:26:21 +02:00
parent 76331d1c4a
commit 0778959e98
2 changed files with 1 additions and 4 deletions

View File

@@ -1094,7 +1094,7 @@ charmap : T_POP_CHARMAP string ',' const {
warning(WARNING_TRUNCATION, "Expression must be 8-bit");
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));
}
;

View File

@@ -144,9 +144,6 @@ int32_t charmap_Add(char *input, uint8_t output)
struct Charmap *charmap = currentCharmap;
struct Charnode *curr_node, *temp_node;
if (charmap->charCount >= MAXCHARMAPS || strlen(input) > CHARMAPLENGTH)
return -1;
curr_node = &charmap->nodes[0];
for (i = 0; (v = (uint8_t)input[i]); i++) {