mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-15 15:23:02 +00:00
* src/symtab.c (symbol_free): Remove dead deactivated code:
type_name are properly removed.
Don't use XFREE to free items that cannot be NULL.
* src/struniq.h, src/struniq.c: New.
* src/main.c (main): Initialize/free struniqs.
* src/parse-gram.y (%union): Add astruniq member.
(yyprint): Adjust.
* src/scan-gram.l (<{tag}>): Return a struniq.
Free the obstack bit that used to store it.
* src/symtab.h (symbol_t): The 'type_name' member is a struniq.
This commit is contained in:
@@ -92,6 +92,7 @@ braced_code_t current_braced_code = action_braced_code;
|
||||
int integer;
|
||||
char *string;
|
||||
assoc_t assoc;
|
||||
struniq_t struniq;
|
||||
};
|
||||
|
||||
/* Define the tokens together with their human representation. */
|
||||
@@ -454,7 +455,7 @@ yyprint (FILE *file,
|
||||
break;
|
||||
|
||||
case TYPE:
|
||||
fprintf (file, " = <%s>", value->string);
|
||||
fprintf (file, " = <%s>", value->struniq);
|
||||
break;
|
||||
|
||||
case BRACED_CODE:
|
||||
|
||||
Reference in New Issue
Block a user