mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-19 17:23:02 +00:00
style: simplify strings to translate
* src/conflicts.c (log_resolution): Don't translate indentation.
This commit is contained in:
@@ -76,8 +76,9 @@ log_resolution (rule *r, symbol_number token,
|
|||||||
{
|
{
|
||||||
case shift_resolution:
|
case shift_resolution:
|
||||||
case right_resolution:
|
case right_resolution:
|
||||||
|
obstack_sgrow (&solved_conflicts_obstack, " ");
|
||||||
obstack_printf (&solved_conflicts_obstack,
|
obstack_printf (&solved_conflicts_obstack,
|
||||||
_(" Conflict between rule %d and token %s"
|
_("Conflict between rule %d and token %s"
|
||||||
" resolved as shift"),
|
" resolved as shift"),
|
||||||
r->number,
|
r->number,
|
||||||
symbols[token]->tag);
|
symbols[token]->tag);
|
||||||
@@ -85,16 +86,18 @@ log_resolution (rule *r, symbol_number token,
|
|||||||
|
|
||||||
case reduce_resolution:
|
case reduce_resolution:
|
||||||
case left_resolution:
|
case left_resolution:
|
||||||
|
obstack_sgrow (&solved_conflicts_obstack, " ");
|
||||||
obstack_printf (&solved_conflicts_obstack,
|
obstack_printf (&solved_conflicts_obstack,
|
||||||
_(" Conflict between rule %d and token %s"
|
_("Conflict between rule %d and token %s"
|
||||||
" resolved as reduce"),
|
" resolved as reduce"),
|
||||||
r->number,
|
r->number,
|
||||||
symbols[token]->tag);
|
symbols[token]->tag);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case nonassoc_resolution:
|
case nonassoc_resolution:
|
||||||
|
obstack_sgrow (&solved_conflicts_obstack, " ");
|
||||||
obstack_printf (&solved_conflicts_obstack,
|
obstack_printf (&solved_conflicts_obstack,
|
||||||
_(" Conflict between rule %d and token %s"
|
_("Conflict between rule %d and token %s"
|
||||||
" resolved as an error"),
|
" resolved as an error"),
|
||||||
r->number,
|
r->number,
|
||||||
symbols[token]->tag);
|
symbols[token]->tag);
|
||||||
|
|||||||
Reference in New Issue
Block a user