mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-23 11:13:03 +00:00
* data/push.c (yyparse): Remove the prototype and the #define when in
push-parser mode.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2006-12-14 Bob Rossi <bob@brasko.net>
|
||||||
|
|
||||||
|
* data/push.c (yyparse): Remove the prototype and the #define when in
|
||||||
|
push-parser mode.
|
||||||
|
|
||||||
2006-12-13 Bob Rossi <bob@brasko.net>
|
2006-12-13 Bob Rossi <bob@brasko.net>
|
||||||
|
|
||||||
* data/push.c (yypstate_init): Rename to...
|
* data/push.c (yypstate_init): Rename to...
|
||||||
|
|||||||
18
data/push.c
18
data/push.c
@@ -151,11 +151,11 @@ b4_copyright([Skeleton implementation for Bison's Yacc-like parsers in C],dnl '
|
|||||||
]b4_identification
|
]b4_identification
|
||||||
m4_if(b4_prefix, [yy], [],
|
m4_if(b4_prefix, [yy], [],
|
||||||
[/* Substitute the variable and function names. */
|
[/* Substitute the variable and function names. */
|
||||||
#define yyparse b4_prefix[]parse
|
|
||||||
]b4_push_if([#define yypush_parse b4_prefix[]push_parse
|
]b4_push_if([#define yypush_parse b4_prefix[]push_parse
|
||||||
#define yypstate_new b4_prefix[]pstate_new
|
#define yypstate_new b4_prefix[]pstate_new
|
||||||
#define yypstate_delete b4_prefix[]pstate_delete
|
#define yypstate_delete b4_prefix[]pstate_delete
|
||||||
#define yypstate b4_prefix[]pstate])[
|
#define yypstate b4_prefix[]pstate],
|
||||||
|
[#define yyparse b4_prefix[]parse])[
|
||||||
#define yylex b4_prefix[]lex
|
#define yylex b4_prefix[]lex
|
||||||
#define yyerror b4_prefix[]error
|
#define yyerror b4_prefix[]error
|
||||||
#define yylval b4_prefix[]lval
|
#define yylval b4_prefix[]lval
|
||||||
@@ -961,13 +961,6 @@ yysyntax_error (char *yyresult, int yystate, int yychar)
|
|||||||
|
|
||||||
/* Prevent warnings from -Wmissing-prototypes. */
|
/* Prevent warnings from -Wmissing-prototypes. */
|
||||||
|
|
||||||
#ifdef YYPARSE_PARAM
|
|
||||||
]b4_c_function_decl([yyparse], [int],
|
|
||||||
[[void *YYPARSE_PARAM], [YYPARSE_PARAM]])[
|
|
||||||
#else /* ! YYPARSE_PARAM */
|
|
||||||
]b4_c_function_decl([yyparse], [int], b4_parse_param)[
|
|
||||||
#endif /* ! YYPARSE_PARAM */
|
|
||||||
|
|
||||||
]b4_push_if([
|
]b4_push_if([
|
||||||
struct yypstate;
|
struct yypstate;
|
||||||
enum { YYPUSH_MORE = 4 };
|
enum { YYPUSH_MORE = 4 };
|
||||||
@@ -978,7 +971,12 @@ enum { YYPUSH_MORE = 4 };
|
|||||||
[[int yynchar], [yynchar]],
|
[[int yynchar], [yynchar]],
|
||||||
[[YYSTYPE const *yynlval], [yynlval]]
|
[[YYSTYPE const *yynlval], [yynlval]]
|
||||||
b4_locations_if([,[[YYLTYPE const *yynlloc], [yynlloc]]]))[
|
b4_locations_if([,[[YYLTYPE const *yynlloc], [yynlloc]]]))[
|
||||||
])[
|
],[#ifdef YYPARSE_PARAM
|
||||||
|
]b4_c_function_decl([yyparse], [int],
|
||||||
|
[[void *YYPARSE_PARAM], [YYPARSE_PARAM]])[
|
||||||
|
#else /* ! YYPARSE_PARAM */
|
||||||
|
]b4_c_function_decl([yyparse], [int], b4_parse_param)[
|
||||||
|
#endif /* ! YYPARSE_PARAM */])[
|
||||||
|
|
||||||
]m4_divert_push([KILL])# ======================== M4 code.
|
]m4_divert_push([KILL])# ======================== M4 code.
|
||||||
# b4_declare_parser_variables
|
# b4_declare_parser_variables
|
||||||
|
|||||||
Reference in New Issue
Block a user