Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
0465c52b
Commit
0465c52b
authored
Jun 10, 2009
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Arrange that the string "syntax error" generated by bison is translated.
parent
14ba9fde
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
src/interfaces/ecpg/preproc/ecpg.header
src/interfaces/ecpg/preproc/ecpg.header
+7
-1
src/interfaces/ecpg/preproc/ecpg.trailer
src/interfaces/ecpg/preproc/ecpg.trailer
+3
-2
No files found.
src/interfaces/ecpg/preproc/ecpg.header
View file @
0465c52b
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/ecpg.header,v 1.
6 2009/06/03 20:24:51 tgl
Exp $ */
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/ecpg.header,v 1.
7 2009/06/10 23:11:52 petere
Exp $ */
/* Copyright comment */
/* Copyright comment */
%{
%{
...
@@ -22,6 +22,12 @@
...
@@ -22,6 +22,12 @@
*/
*/
#define base_yylex filtered_base_yylex
#define base_yylex filtered_base_yylex
/*
* This is only here so the string gets into the POT. Bison uses it
* internally.
*/
#define bison_gettext_dummy gettext_noop("syntax error")
/*
/*
* Variables containing simple states.
* Variables containing simple states.
*/
*/
...
...
src/interfaces/ecpg/preproc/ecpg.trailer
View file @
0465c52b
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/ecpg.trailer,v 1.
8 2009/06/03 20:24:51 tgl
Exp $ */
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/ecpg.trailer,v 1.
9 2009/06/10 23:11:52 petere
Exp $ */
statements: /*EMPTY*/
statements: /*EMPTY*/
| statements statement
| statements statement
...
@@ -1987,8 +1987,9 @@ ecpg_into: INTO into_list { $$ = EMPTY; }
...
@@ -1987,8 +1987,9 @@ ecpg_into: INTO into_list { $$ = EMPTY; }
void base_yyerror(const char *error)
void base_yyerror(const char *error)
{
{
/* translator: %s is typically the translation of "syntax error" */
mmerror(PARSE_ERROR, ET_ERROR, "%s at or near \"%s\"",
mmerror(PARSE_ERROR, ET_ERROR, "%s at or near \"%s\"",
error
, token_start ? token_start : yytext);
_(error)
, token_start ? token_start : yytext);
}
}
void parser_init(void)
void parser_init(void)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment