Skip to content

Commit

Permalink
change prototype for yyparse
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmonktastic committed Sep 16, 2011
1 parent 2e1a694 commit c260886
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions bison/custom_yacc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1002,10 +1002,9 @@ yysyntax_error (char *yyresult, int yystate, int yychar)
]b4_push_if([],
[[/* Prevent warnings from -Wmissing-prototypes. */
#ifdef YYPARSE_PARAM
]b4_c_function_decl([yyparse], [int],
[[void *YYPARSE_PARAM], [YYPARSE_PARAM]])[
]b4_c_function_decl([yyparse], [int], [int token])[
#else /* ! YYPARSE_PARAM */
]b4_c_function_decl([yyparse], [int], b4_parse_param)[
]b4_c_function_decl([yyparse], [int], [int token])[
#endif /* ! YYPARSE_PARAM */]])

m4_divert_push([KILL])# ======================== M4 code.
Expand Down Expand Up @@ -1174,9 +1173,9 @@ b4_c_function_def([[yypush_parse]], [[int]],
[[[YYLTYPE const *yypushed_loc]], [[yypushed_loc]]]])])m4_ifset([b4_parse_param], [,
b4_parse_param]))], [
#ifdef YYPARSE_PARAM
b4_c_function_def([yyparse], [int], [[void *YYPARSE_PARAM], [YYPARSE_PARAM]])
b4_c_function_def([yyparse], [int], [int token])
#else /* ! YYPARSE_PARAM */
b4_c_function_def([yyparse], [int], b4_parse_param)
b4_c_function_def([yyparse], [int], [int token])
#endif])[
{
]b4_pure_if([b4_declare_scanner_communication_variables])
Expand Down

0 comments on commit c260886

Please sign in to comment.