mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-11 13:23:04 +00:00
* src/reader.c, src/reader.h (user_toknums): Remove.
Adjust all users to use symbols[i]->user_token_number.
This commit is contained in:
@@ -52,7 +52,6 @@ typedef struct symbol_list
|
||||
} symbol_list;
|
||||
|
||||
int lineno;
|
||||
short *user_toknums;
|
||||
static symbol_list *grammar;
|
||||
static int start_flag;
|
||||
static bucket *startval;
|
||||
@@ -1567,7 +1566,6 @@ packsymbols (void)
|
||||
int tokno = 1;
|
||||
int last_user_token_number;
|
||||
|
||||
user_toknums = XCALLOC (short, nsyms + 1);
|
||||
symbols = XCALLOC (bucket *, nsyms);
|
||||
|
||||
max_user_token_number = 256;
|
||||
@@ -1640,7 +1638,6 @@ packsymbols (void)
|
||||
}
|
||||
|
||||
symbols[bp->value] = bp;
|
||||
user_toknums[bp->value] = bp->user_token_number;
|
||||
}
|
||||
|
||||
token_translations_init ();
|
||||
|
||||
Reference in New Issue
Block a user