mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-16 15:53:03 +00:00
(lookaheads_print): Wrap strings in _() if they need translation.
This commit is contained in:
@@ -403,7 +403,7 @@ lookaheads_print (FILE *out)
|
|||||||
{
|
{
|
||||||
state_number_t i;
|
state_number_t i;
|
||||||
int j, k;
|
int j, k;
|
||||||
fprintf (out, "Lookaheads: BEGIN\n");
|
fprintf (out, _("Lookaheads: BEGIN\n"));
|
||||||
for (i = 0; i < nstates; ++i)
|
for (i = 0; i < nstates; ++i)
|
||||||
{
|
{
|
||||||
reductions_t *reds = states[i]->reductions;
|
reductions_t *reds = states[i]->reductions;
|
||||||
@@ -415,19 +415,19 @@ lookaheads_print (FILE *out)
|
|||||||
if (reds->lookaheads[k])
|
if (reds->lookaheads[k])
|
||||||
++nlookaheads;
|
++nlookaheads;
|
||||||
|
|
||||||
fprintf (out, "State %d: %d lookaheads\n",
|
fprintf (out, _("State %d: %d lookaheads\n"),
|
||||||
i, nlookaheads);
|
i, nlookaheads);
|
||||||
|
|
||||||
if (reds->lookaheads)
|
if (reds->lookaheads)
|
||||||
for (j = 0; j < reds->num; ++j)
|
for (j = 0; j < reds->num; ++j)
|
||||||
BITSET_FOR_EACH (iter, reds->lookaheads[j], k, 0)
|
BITSET_FOR_EACH (iter, reds->lookaheads[j], k, 0)
|
||||||
{
|
{
|
||||||
fprintf (out, " on %d (%s) -> rule %d\n",
|
fprintf (out, _(" on %d (%s) -> rule %d\n"),
|
||||||
k, symbols[k]->tag,
|
k, symbols[k]->tag,
|
||||||
reds->rules[j]->number);
|
reds->rules[j]->number);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
fprintf (out, "Lookaheads: END\n");
|
fprintf (out, _("Lookaheads: END\n"));
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
Reference in New Issue
Block a user