mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-11 05:13:04 +00:00
* src/gram.c (gram_free): Rename back as...
(dummy): this. (output_token_translations): Free `token_translations'. * src/symtab.c (free_symtab): Free the tag field.
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
2001-09-22 Akim Demaille <akim@epita.fr>
|
||||
|
||||
* src/gram.c (gram_free): Rename back as...
|
||||
(dummy): this.
|
||||
(output_token_translations): Free `token_translations'.
|
||||
* src/symtab.c (free_symtab): Free the tag field.
|
||||
|
||||
2001-09-22 Akim Demaille <akim@epita.fr>
|
||||
|
||||
Remove `translations' as it is always set to true.
|
||||
|
||||
@@ -52,10 +52,10 @@ int pure_parser;
|
||||
|
||||
int error_token_number;
|
||||
|
||||
/* Free all the memory associated to these pointers. */
|
||||
/* This is to avoid linker problems which occur on VMS when using GCC,
|
||||
when the file in question contains data definitions only. */
|
||||
|
||||
void
|
||||
gram_free (void)
|
||||
dummy (void)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
24
src/output.c
24
src/output.c
@@ -110,17 +110,17 @@ extern void berror PARAMS((const char *));
|
||||
|
||||
static int nvectors;
|
||||
static int nentries;
|
||||
static short **froms;
|
||||
static short **tos;
|
||||
static short *tally;
|
||||
static short *width;
|
||||
static short *actrow;
|
||||
static short *state_count;
|
||||
static short *order;
|
||||
static short *base;
|
||||
static short *pos;
|
||||
static short *table;
|
||||
static short *check;
|
||||
static short **froms = NULL;
|
||||
static short **tos = NULL;
|
||||
static short *tally = NULL;
|
||||
static short *width = NULL;
|
||||
static short *actrow = NULL;
|
||||
static short *state_count = NULL;
|
||||
static short *order = NULL;
|
||||
static short *base = NULL;
|
||||
static short *pos = NULL;
|
||||
static short *table = NULL;
|
||||
static short *check = NULL;
|
||||
static int lowzero;
|
||||
static int high;
|
||||
|
||||
@@ -306,6 +306,8 @@ output_token_translations (void)
|
||||
ntokens < 127 ? "char" : "short",
|
||||
"yytranslate", token_translations,
|
||||
0, 1, max_user_token_number + 1);
|
||||
|
||||
XFREE (token_translations);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1751,7 +1751,6 @@ packsymbols (void)
|
||||
user_toknums[bp->value] = bp->user_token_number;
|
||||
sprec[bp->value] = bp->prec;
|
||||
sassoc[bp->value] = bp->assoc;
|
||||
|
||||
}
|
||||
|
||||
token_translations = XCALLOC (short, max_user_token_number + 1);
|
||||
|
||||
@@ -143,6 +143,7 @@ free_symtab (void)
|
||||
if (bp->type_name)
|
||||
XFREE (bp->type_name);
|
||||
#endif
|
||||
XFREE (bp->tag);
|
||||
XFREE (bp);
|
||||
bp = bptmp;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user