Destructor cleanups and regularization among the three skeletons.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 19 Jul 2005 06:56:44 +0000 (06:56 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 19 Jul 2005 06:56:44 +0000 (06:56 +0000)
commit258b75caaa517febf55e1f6e479cbf298f9e5cde
tree8eceb797d7b1e04125b082c08cc937c4ec00c479
parent6088a2a04d926bb02528ed420f15743fd10e341d
Destructor cleanups and regularization among the three skeletons.
* NEWS: Document the behavior changes.
* data/glr.c (yyrecoverSyntaxError): Don't bother to pop the
stack before failing, as the cleanup code will do it for us now.
* data/lalr1.cc (yyerrlab): Likewise.
* data/glr.c (yyparse): Pop everything off the stack before
freeing it, so that destructors get called properly.
* data/lalr1.cc (yyreturn): Likewise.
* data/yacc.c (yyreturn): Pop and destroy the start symbol, too.
This is more consistent.
* doc/bison.texinfo (Destructor Decl): Mention more reasons
why destructors might be called.  1.875 -> 2.1.
(Destructor Decl, Decl Summary, Table of Symbols):
Some English-language cleanups for %destructor.
* tests/actions.at (_AT_CHECK_PRINTER_AND_DESTRUCTOR):
Add output line for destructor of start symbol.
* tests/calc.at (AT_CHECK_CALC): Add one to line counts,
because of that same extra output line.
ChangeLog
NEWS
data/glr.c
data/lalr1.cc
data/yacc.c
doc/bison.texinfo
tests/actions.at
tests/calc.at