mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-21 10:13:03 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user