style: split a function in two

grammar_current_rule_action_append was used in two different places:
for actual action (`{...}`), and for predicates (`%?{...}`).  Let's
split this in two different functions.

* src/reader.h, src/reader.c (grammar_current_rule_predicate_append): New.
Extracted from...
(grammar_current_rule_action_append): here.
Remove arguments that don't apply.
Adjust dependencies.
This commit is contained in:
Akim Demaille
2018-06-17 17:21:01 +02:00
parent a0f33a28e9
commit 9502b2ab48
5 changed files with 24 additions and 12 deletions

View File

@@ -1,4 +1,4 @@
/* A Bison parser, made by GNU Bison 3.0.4.38-1047-dirty. */
/* A Bison parser, made by GNU Bison 3.0.5.23-f58b-dirty. */
/* Bison interface for Yacc-like parsers in C