(nested_function, notype_nested_function): Allow old-style arg

definitions (use xdecls).

From-SVN: r9628
This commit is contained in:
Richard Kenner 1995-05-11 19:27:13 -04:00
parent 9a381dd472
commit 67b0763ea8
1 changed files with 6 additions and 4 deletions

View File

@ -1193,8 +1193,9 @@ nested_function:
pop_c_function_context ();
YYERROR1;
}
reinit_parse_for_function ();
store_parm_decls (); }
reinit_parse_for_function (); }
xdecls
{ store_parm_decls (); }
/* This used to use compstmt_or_error.
That caused a bug with input `f(g) int g {}',
where the use of YYERROR1 above caused an error
@ -1215,8 +1216,9 @@ notype_nested_function:
pop_c_function_context ();
YYERROR1;
}
reinit_parse_for_function ();
store_parm_decls (); }
reinit_parse_for_function (); }
xdecls
{ store_parm_decls (); }
/* This used to use compstmt_or_error.
That caused a bug with input `f(g) int g {}',
where the use of YYERROR1 above caused an error