File tree 2 files changed +10
-3
lines changed
src/interfaces/ecpg/preproc
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 1
- /* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/ecpg.header,v 1.6 2009/06/03 20:24:51 tgl Exp $ */
1
+ /* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/ecpg.header,v 1.7 2009/06/10 23:11:52 petere Exp $ */
2
2
3
3
/* Copyright comment */
4
4
%{
22
22
*/
23
23
#define base_yylex filtered_base_yylex
24
24
25
+ /*
26
+ * This is only here so the string gets into the POT. Bison uses it
27
+ * internally.
28
+ */
29
+ #define bison_gettext_dummy gettext_noop("syntax error")
30
+
25
31
/*
26
32
* Variables containing simple states.
27
33
*/
Original file line number Diff line number Diff line change 1
- /* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/ecpg.trailer,v 1.8 2009/06/03 20:24:51 tgl Exp $ */
1
+ /* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/ecpg.trailer,v 1.9 2009/06/10 23:11:52 petere Exp $ */
2
2
3
3
statements: /*EMPTY*/
4
4
| statements statement
@@ -1987,8 +1987,9 @@ ecpg_into: INTO into_list { $$ = EMPTY; }
1987
1987
1988
1988
void base_yyerror(const char *error)
1989
1989
{
1990
+ /* translator: %s is typically the translation of "syntax error" */
1990
1991
mmerror(PARSE_ERROR, ET_ERROR, "%s at or near \"%s\"",
1991
- error, token_start ? token_start : yytext);
1992
+ _( error) , token_start ? token_start : yytext);
1992
1993
}
1993
1994
1994
1995
void parser_init(void)
You can’t perform that action at this time.
0 commit comments