* src/reader.c, src/symlist.h, src/symlist.c: s/mid_rule/midrule/.

This commit is contained in:
Akim Demaille
2006-01-05 13:38:58 +00:00
parent 7a0db73e6f
commit 6ec2c0f295
4 changed files with 8 additions and 4 deletions

View File

@@ -1,3 +1,7 @@
2006-01-05 Akim Demaille <akim@epita.fr>
* src/reader.c, src/symlist.h, src/symlist.c: s/mid_rule/midrule/.
2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
* data/c.m4 (b4_c_modern): New macro, with a new provision for

View File

@@ -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. */

View File

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

View File

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