mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-10 21:03:04 +00:00
Clean up yesterday's patch.
* parse-gram.y (rhs): Move grammar_midrule_action invocation from here to... * src/reader.c (grammar_current_rule_action_append): ... here for consistency with grammar_current_rule_symbol_append. * tests/regression.at (Braced code in declaration in rules section): Make yyerror and yylex static as usual.
This commit is contained in:
@@ -403,6 +403,8 @@ grammar_current_rule_symbol_append (symbol *sym, location loc)
|
||||
void
|
||||
grammar_current_rule_action_append (const char *action, location loc)
|
||||
{
|
||||
if (current_rule->action)
|
||||
grammar_midrule_action ();
|
||||
current_rule->action = translate_rule_action (current_rule, action, loc);
|
||||
current_rule->action_location = loc;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user