mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-21 02:03:03 +00:00
scanner: simplify use of gettext
* src/scan-gram.l (unexpected_end): Leave the actual call to gettext to the caller.
This commit is contained in:
@@ -969,7 +969,7 @@ unexpected_end (boundary start, char const *msgid, char const *token_end)
|
|||||||
/* Instead of '\'', display "'". */
|
/* Instead of '\'', display "'". */
|
||||||
if (STREQ (token_end, "'\\''"))
|
if (STREQ (token_end, "'\\''"))
|
||||||
token_end = "\"'\"";
|
token_end = "\"'\"";
|
||||||
complain (&loc, complaint, _(msgid), token_end);
|
complain (&loc, complaint, msgid, token_end);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -982,7 +982,7 @@ unexpected_end (boundary start, char const *msgid, char const *token_end)
|
|||||||
static void
|
static void
|
||||||
unexpected_eof (boundary start, char const *token_end)
|
unexpected_eof (boundary start, char const *token_end)
|
||||||
{
|
{
|
||||||
unexpected_end (start, N_("missing %s at end of file"), token_end);
|
unexpected_end (start, _("missing %s at end of file"), token_end);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -993,7 +993,7 @@ unexpected_eof (boundary start, char const *token_end)
|
|||||||
static void
|
static void
|
||||||
unexpected_newline (boundary start, char const *token_end)
|
unexpected_newline (boundary start, char const *token_end)
|
||||||
{
|
{
|
||||||
unexpected_end (start, N_("missing %s at end of line"), token_end);
|
unexpected_end (start, _("missing %s at end of line"), token_end);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user