Fix impure push parser compile error reported by Bob Rossi at

<http://lists.gnu.org/archive/html/help-bison/2008-02/msg00023.html>.
* data/yacc.c: Clean up whitespace in the output a little.
(yypstate_allocated): Define for impure push parsers regardless of
whether the pull interface is also requested.
* tests/push.at (Push Parsing: Multiple impure instances): Extend to
check impure push parsers without the pull interface.

* data/yacc.c (yypstate_new): Don't try to invoke yyerror since
yyerror takes arguments specified by %parse-param while yypstate_new
does not.
* doc/bison.texinfo (Parser Create Function): Document that
yypstate_new returns 0 for multiple impure parser instances.
* tests/push.at (Push Parsing: Multiple impure instances): Update
expected stderr output.
This commit is contained in:
Joel E. Denny
2008-02-20 18:23:21 +00:00
parent 798096e1de
commit 333e670c85
4 changed files with 44 additions and 30 deletions

View File

@@ -5339,7 +5339,9 @@ This function is available if either the @code{%define api.push_pull "push"} or
@deftypefun yypstate *yypstate_new (void)
The fuction will return a valid parser instance if there was memory available
or NULL if no memory was available.
or 0 if no memory was available.
In impure mode, it will also return 0 if a parser instance is currently
allocated.
@end deftypefun
@node Parser Delete Function