mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-22 18:53: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>
|
2001-09-22 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
Remove `translations' as it is always set to true.
|
Remove `translations' as it is always set to true.
|
||||||
|
|||||||
@@ -52,10 +52,10 @@ int pure_parser;
|
|||||||
|
|
||||||
int error_token_number;
|
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
|
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 nvectors;
|
||||||
static int nentries;
|
static int nentries;
|
||||||
static short **froms;
|
static short **froms = NULL;
|
||||||
static short **tos;
|
static short **tos = NULL;
|
||||||
static short *tally;
|
static short *tally = NULL;
|
||||||
static short *width;
|
static short *width = NULL;
|
||||||
static short *actrow;
|
static short *actrow = NULL;
|
||||||
static short *state_count;
|
static short *state_count = NULL;
|
||||||
static short *order;
|
static short *order = NULL;
|
||||||
static short *base;
|
static short *base = NULL;
|
||||||
static short *pos;
|
static short *pos = NULL;
|
||||||
static short *table;
|
static short *table = NULL;
|
||||||
static short *check;
|
static short *check = NULL;
|
||||||
static int lowzero;
|
static int lowzero;
|
||||||
static int high;
|
static int high;
|
||||||
|
|
||||||
@@ -306,6 +306,8 @@ output_token_translations (void)
|
|||||||
ntokens < 127 ? "char" : "short",
|
ntokens < 127 ? "char" : "short",
|
||||||
"yytranslate", token_translations,
|
"yytranslate", token_translations,
|
||||||
0, 1, max_user_token_number + 1);
|
0, 1, max_user_token_number + 1);
|
||||||
|
|
||||||
|
XFREE (token_translations);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1751,7 +1751,6 @@ packsymbols (void)
|
|||||||
user_toknums[bp->value] = bp->user_token_number;
|
user_toknums[bp->value] = bp->user_token_number;
|
||||||
sprec[bp->value] = bp->prec;
|
sprec[bp->value] = bp->prec;
|
||||||
sassoc[bp->value] = bp->assoc;
|
sassoc[bp->value] = bp->assoc;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
token_translations = XCALLOC (short, max_user_token_number + 1);
|
token_translations = XCALLOC (short, max_user_token_number + 1);
|
||||||
|
|||||||
@@ -143,6 +143,7 @@ free_symtab (void)
|
|||||||
if (bp->type_name)
|
if (bp->type_name)
|
||||||
XFREE (bp->type_name);
|
XFREE (bp->type_name);
|
||||||
#endif
|
#endif
|
||||||
|
XFREE (bp->tag);
|
||||||
XFREE (bp);
|
XFREE (bp);
|
||||||
bp = bptmp;
|
bp = bptmp;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user