style: split a function in two
commit9502b2ab489014708da9f8d7a22627e5889e7af0
authorAkim Demaille <akim.demaille@gmail.com>
Sun, 17 Jun 2018 15:21:01 +0000 (17 17:21 +0200)
committerAkim Demaille <akim.demaille@gmail.com>
Thu, 26 Jul 2018 18:18:32 +0000 (26 20:18 +0200)
tree79d594ca9d57bf2e1cc8af83de2ddad577bdf333
parenta0f33a28e95f8d11fd37f430b0856fa121762976
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.
src/parse-gram.c
src/parse-gram.h
src/parse-gram.y
src/reader.c
src/reader.h