More cleanup.

* src/reader.c (current_rule): Declare it static since it's no longer
used outside this file.
(grammar_current_rule_action_append): Remove redundant arguments from
translate_rule_action invocation.
* src/reader.h (current_rule): Remove this unused extern.
* src/scan-code.h (translate_rule_action): Remove redundant arguments.
* src/scan-code.l (translate_rule_action): Likewise.
This commit is contained in:
Joel E. Denny
2006-06-26 03:28:57 +00:00
parent 381ecb0687
commit e256e17f57
5 changed files with 19 additions and 7 deletions

View File

@@ -357,9 +357,10 @@ translate_action (int sc_context, symbol_list *rule, const char *a, location l)
}
const char *
translate_rule_action (symbol_list *rule, const char *a, location l)
translate_rule_action (symbol_list *rule)
{
return translate_action (SC_RULE_ACTION, rule, a, l);
return translate_action (SC_RULE_ACTION, rule, rule->action,
rule->action_location);
}
const char *