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:
Joel E. Denny
2006-06-25 06:59:54 +00:00
parent 4210cd0bfc
commit 381ecb0687
5 changed files with 31 additions and 27 deletions

View File

@@ -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;
}