From 6ec2c0f2958f30b29e0886cbb8ebacea62c8ce25 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Thu, 5 Jan 2006 13:38:58 +0000 Subject: [PATCH] * src/reader.c, src/symlist.h, src/symlist.c: s/mid_rule/midrule/. --- ChangeLog | 4 ++++ src/reader.c | 4 ++-- src/symlist.c | 2 +- src/symlist.h | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 82fad9e6..5da2b92b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2006-01-05 Akim Demaille + + * src/reader.c, src/symlist.h, src/symlist.c: s/mid_rule/midrule/. + 2006-01-04 Paul Eggert * data/c.m4 (b4_c_modern): New macro, with a new provision for diff --git a/src/reader.c b/src/reader.c index 573cb14d..f2370a98 100644 --- a/src/reader.c +++ b/src/reader.c @@ -221,7 +221,7 @@ static bool symbol_typed_p (const symbol_list *s) { return (s->sym->type_name - || s->mid_rule && s->mid_rule->used); + || s->midrule && s->midrule->used); } /*----------------------------------------------------------------. @@ -341,7 +341,7 @@ grammar_midrule_action (void) /* Insert the dummy nonterminal replacing the midrule action into the current rule. Bind it to its dedicated rule. */ grammar_current_rule_symbol_append (dummy, dummy_location); - grammar_end->mid_rule = midrule; + grammar_end->midrule = midrule; } /* Set the precedence symbol of the current rule to PRECSYM. */ diff --git a/src/symlist.c b/src/symlist.c index eeb54e5a..70db82f0 100644 --- a/src/symlist.c +++ b/src/symlist.c @@ -38,7 +38,7 @@ symbol_list_new (symbol *sym, location loc) res->sym = sym; res->location = loc; - res->mid_rule = NULL; + res->midrule = NULL; res->action = NULL; res->used = false; diff --git a/src/symlist.h b/src/symlist.h index bff56683..0423d016 100644 --- a/src/symlist.h +++ b/src/symlist.h @@ -34,7 +34,7 @@ typedef struct symbol_list /* If this symbol is the generated lhs for a mid-rule, a pointer to that mid-rule. */ - struct symbol_list *mid_rule; + struct symbol_list *midrule; /* The action is attached to the LHS of a rule. */ const char *action; -- 2.45.2