summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2021-01-26 06:48:04 +0100
committerAkim Demaille <akim.demaille@gmail.com>2021-01-27 20:48:38 +0100
commitb27bba5cedbe552b2a406e051de293c677c2b9a7 (patch)
tree14fabfd6c6124384f66e2c65152d6a6678d54fa7 /examples
parent7a525fa06f799a9e681581a80ada477b41daaedb (diff)
downloadbison-b27bba5cedbe552b2a406e051de293c677c2b9a7.tar.gz
bistromathic: use gettext for all the messages
* examples/c/bistromathic/parse.y: Add missing calls to _.
Diffstat (limited to 'examples')
-rw-r--r--examples/c/bistromathic/parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/c/bistromathic/parse.y b/examples/c/bistromathic/parse.y
index 5d5efabf..783155f9 100644
--- a/examples/c/bistromathic/parse.y
+++ b/examples/c/bistromathic/parse.y
@@ -187,7 +187,7 @@ exp:
{
if ($r == 0)
{
- yyerror (&@$, uctx, "error: division by zero");
+ yyerror (&@$, uctx, _("error: division by zero"));
YYERROR;
}
else
@@ -345,7 +345,7 @@ yylex (const char **line, YYSTYPE *yylval, YYLTYPE *yylloc,
// Stray characters.
default:
- yyerror (yylloc, uctx, "syntax error: invalid character: %c", c);
+ yyerror (yylloc, uctx, _("syntax error: invalid character: %c"), c);
return TOK_YYerror;
}
}