mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-21 10:13:03 +00:00
Fix code formatting.
This commit is contained in:
@@ -448,10 +448,10 @@ packgram (void)
|
|||||||
rules[ruleno].action_location = p->action_location;
|
rules[ruleno].action_location = p->action_location;
|
||||||
|
|
||||||
/* If this rule contains midrules, rest assured that
|
/* If this rule contains midrules, rest assured that
|
||||||
grammar_midrule_action inserted the midrules into grammar before this
|
grammar_midrule_action inserted the midrules into grammar before this
|
||||||
rule. Thus, the midrule actions have already been scanned in order to
|
rule. Thus, the midrule actions have already been scanned in order to
|
||||||
set `used' flags for this rule's rhs, so grammar_rule_check will work
|
set `used' flags for this rule's rhs, so grammar_rule_check will work
|
||||||
properly. */
|
properly. */
|
||||||
grammar_rule_check (p);
|
grammar_rule_check (p);
|
||||||
|
|
||||||
for (p = p->next; p && p->sym; p = p->next)
|
for (p = p->next; p && p->sym; p = p->next)
|
||||||
|
|||||||
@@ -269,17 +269,17 @@ handle_action_dollar (symbol_list *rule, char *text, location dollar_loc)
|
|||||||
if (!type_name)
|
if (!type_name)
|
||||||
type_name = symbol_list_n_type_name_get (rule, dollar_loc, 0);
|
type_name = symbol_list_n_type_name_get (rule, dollar_loc, 0);
|
||||||
if (!type_name && typed)
|
if (!type_name && typed)
|
||||||
{
|
{
|
||||||
if (rule->midrule_parent_rule)
|
if (rule->midrule_parent_rule)
|
||||||
complain_at (dollar_loc,
|
complain_at (dollar_loc,
|
||||||
_("$$ for the midrule at $%d of `%s' has no declared"
|
_("$$ for the midrule at $%d of `%s' has no declared"
|
||||||
" type"),
|
" type"),
|
||||||
rule->midrule_parent_rhs_index,
|
rule->midrule_parent_rhs_index,
|
||||||
effective_rule->sym->tag);
|
effective_rule->sym->tag);
|
||||||
else
|
else
|
||||||
complain_at (dollar_loc, _("$$ of `%s' has no declared type"),
|
complain_at (dollar_loc, _("$$ of `%s' has no declared type"),
|
||||||
rule->sym->tag);
|
rule->sym->tag);
|
||||||
}
|
}
|
||||||
if (!type_name)
|
if (!type_name)
|
||||||
type_name = "";
|
type_name = "";
|
||||||
obstack_fgrow1 (&obstack_for_string,
|
obstack_fgrow1 (&obstack_for_string,
|
||||||
|
|||||||
Reference in New Issue
Block a user