mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-13 14:23:04 +00:00
Remove `translations' as it is always set to true.
* src/gram.h: Adjust. * src/reader.c (packsymbols, parse_token_decl): Adjust * src/print.c (print_grammar): Adjust. * src/output.c (output_token_translations): Adjust. * src/lex.c (lex): Adjust. * src/gram.c: Be sure the set pointers to NULL. (dummy): Rename as... (gram_free): this.
This commit is contained in:
28
src/gram.c
28
src/gram.c
@@ -31,21 +31,19 @@ int nsyms;
|
||||
int ntokens;
|
||||
int nvars;
|
||||
|
||||
short *ritem;
|
||||
short *rlhs;
|
||||
short *rrhs;
|
||||
short *rprec;
|
||||
short *rprecsym;
|
||||
short *sprec;
|
||||
short *rassoc;
|
||||
short *sassoc;
|
||||
short *token_translations;
|
||||
short *rline;
|
||||
short *ritem = NULL;
|
||||
short *rlhs = NULL;
|
||||
short *rrhs = NULL;
|
||||
short *rprec = NULL;
|
||||
short *rprecsym = NULL;
|
||||
short *sprec = NULL;
|
||||
short *rassoc = NULL;
|
||||
short *sassoc = NULL;
|
||||
short *token_translations = NULL;
|
||||
short *rline = NULL;
|
||||
|
||||
int start_symbol;
|
||||
|
||||
int translations;
|
||||
|
||||
int max_user_token_number;
|
||||
|
||||
int semantic_parser;
|
||||
@@ -54,10 +52,10 @@ int pure_parser;
|
||||
|
||||
int error_token_number;
|
||||
|
||||
/* This is to avoid linker problems which occur on VMS when using GCC,
|
||||
when the file in question contains data definitions only. */
|
||||
/* Free all the memory associated to these pointers. */
|
||||
|
||||
void
|
||||
dummy (void)
|
||||
gram_free (void)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user