* src/symtab.h, src/symtab.c (symbol_t): destructor_location is a

new member.
(symbol_destructor_set): Adjust.
* src/output.c (symbol_destructors_output): Output the destructor
locations.
Output the symbol name.
* data/bison.simple (b4_symbol_destructor): Adjust.
This commit is contained in:
Akim Demaille
2002-06-18 09:55:35 +00:00
parent 5719c1092f
commit 24c0aad7e7
5 changed files with 36 additions and 10 deletions

View File

@@ -56,13 +56,14 @@ struct symbol_s
{
/* The key, name of the symbol. */
char *tag;
/* The location of its first occurence. */
location_t location;
/* Its %type and associated destructor. */
char *type_name;
char *destructor;
location_t destructor_location;
/* The location of its first occurence. */
location_t location;
symbol_number_t number;
short prec;