* 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

@@ -1267,7 +1267,11 @@ yyreturn:
return yyresult;
]}
/* Release the memory associated to SYMBOL-NUMBER. */
/*-------------------------------------------------.
| Release the memory associated to SYMBOL-NUMBER. |
`-------------------------------------------------*/
m4_divert_push([KILL])# M4 code.
# b4_eval
# -------
@@ -1280,9 +1284,11 @@ m4_define([b4_eval],
# b4_symbol_destructor(SYMBOL-NUMBER, DESTRUCTOR, TYPE-NAME)
# ----------------------------------------------------------
m4_define([b4_symbol_destructor],
[m4_pushdef([b4_dollar_dollar], [symbol_value.$3])dnl
case $1:
b4_eval($2);
[m4_pushdef([b4_dollar_dollar], [symbol_value.$6])dnl
case $4: /* $3 */
#line $2 "$1"
b4_eval($5);
#line __oline__ "__ofile__"
break;
m4_popdef([b4_dollar_dollar])])