+2001-12-05 Akim Demaille <akim@epita.fr>
+
+ * src/conflicts.c (print_reductions): Improve variable locality.
+
+
2001-12-05 Akim Demaille <akim@epita.fr>
* src/conflicts.c (print_reductions): Pessimize, but clarify.
{
int i;
int j;
- int rule;
int symbol;
unsigned mask;
int m;
{
if (!errp->errs[i])
continue;
- symbol = errp->errs[i];
- SETBIT (shiftset, symbol);
+ SETBIT (shiftset, errp->errs[i]);
}
}
if (count == 0)
{
if (j != default_LA)
- {
- rule = LAruleno[j];
- fprintf (out,
- _(" %-4s\treduce using rule %d (%s)\n"),
- tags[i], rule, tags[rule_table[rule].lhs]);
- }
+ fprintf (out,
+ _(" %-4s\treduce using rule %d (%s)\n"),
+ tags[i],
+ LAruleno[j],
+ tags[rule_table[LAruleno[j]].lhs]);
else
defaulted = 1;
else
{
if (defaulted)
- {
- rule = LAruleno[default_LA];
- fprintf (out,
- _(" %-4s\treduce using rule %d (%s)\n"),
- tags[i], rule, tags[rule_table[rule].lhs]);
- defaulted = 0;
- }
- rule = LAruleno[j];
+ fprintf (out,
+ _(" %-4s\treduce using rule %d (%s)\n"),
+ tags[i],
+ LAruleno[default_LA],
+ tags[rule_table[LAruleno[default_LA]].lhs]);
+ defaulted = 0;
fprintf (out,
_(" %-4s\t[reduce using rule %d (%s)]\n"),
- tags[i], rule, tags[rule_table[rule].lhs]);
+ tags[i],
+ LAruleno[j],
+ tags[rule_table[LAruleno[j]].lhs]);
}
}