]> git.saurik.com Git - bison.git/commit
Make %push-parser imply %pure-parser. This fixes several bugs; see
authorJoel E. Denny <jdenny@ces.clemson.edu>
Sun, 17 Dec 2006 01:33:31 +0000 (01:33 +0000)
committerJoel E. Denny <jdenny@ces.clemson.edu>
Sun, 17 Dec 2006 01:33:31 +0000 (01:33 +0000)
commit791934e4b5692dabefdee2ca948ade8afc3684ce
treeb06cbe79fd5e692f0634b3df77203a6ad83102bc
parentee5abb379bc118339852b742fea1ca1c8fce7706
Make %push-parser imply %pure-parser.  This fixes several bugs; see
<http://lists.gnu.org/archive/html/bison-patches/2006-12/msg00148.html>.
* src/parse-gram.y (prologue_declaration): For %push-parser, also set
pure_parser = true.
* data/push.c: Don't bother testing b4_push_if when deciding whether
to expand b4_declare_parser_variables globally.
(yypush_parse): Likewise in here.

* data/push.c (yypush_parse): Add b4_parse_param to arguments.
(yy_reduce_print): Reformat M4 for readability.
ChangeLog
data/push.c
src/parse-gram.c
src/parse-gram.y