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
7f7fb4e6
Commit
7f7fb4e6
authored
Mar 10, 2002
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed two bugs in define command in pgc.l
parent
a9f268dc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
7 deletions
+16
-7
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/ChangeLog
+4
-0
src/interfaces/ecpg/preproc/pgc.l
src/interfaces/ecpg/preproc/pgc.l
+12
-7
No files found.
src/interfaces/ecpg/ChangeLog
View file @
7f7fb4e6
...
...
@@ -1221,6 +1221,10 @@ Wed Jan 23 17:35:23 CET 2002
Wed Mar 6 10:40:28 CET 2002
- Synced preproc.y with gram.y.
Sun Mar 10 13:08:22 CET 2002
- Fixed two bugs in define command in lexer.
- Set ecpg version to 2.10.0.
- Set library version to 3.4.0.
src/interfaces/ecpg/preproc/pgc.l
View file @
7f7fb4e6
...
...
@@ -12,7 +12,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.8
6 2002/03/06 06:10:36 momjian
Exp $
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.8
7 2002/03/10 12:09:54 meskes
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -352,7 +352,7 @@ cppline {space}*#(.*\\{space})*.*
<xh><<EOF>> { mmerror(PARSE_ERROR, ET_ERROR, "Unterminated hexadecimal integer"); }
{xqstart}
{
<C,SQL>{xqstart}
{
state_before = YYSTATE;
BEGIN(xq);
startlit();
...
...
@@ -412,7 +412,7 @@ cppline {space}*#(.*\\{space})*.*
addlit(yytext, yyleng);
}
<xd,xdc><<EOF>> { mmerror(PARSE_ERROR, ET_ERROR, "Unterminated quoted identifier"); }
{xdstart}
{
<C,SQL>{xdstart}
{
state_before = YYSTATE;
BEGIN(xdc);
startlit();
...
...
@@ -789,7 +789,6 @@ cppline {space}*#(.*\\{space})*.*
/* initial definition */
this->old = old;
/* this->new = mm_strdup(scanstr(literalbuf));*/
this->new = mm_strdup(literalbuf);
this->next = defines;
defines = this;
...
...
@@ -797,11 +796,11 @@ cppline {space}*#(.*\\{space})*.*
BEGIN(C);
}
<def>[^
";"
] {
<def>[^
;
] {
addlit(yytext, yyleng);
}
<incl>[^
";"
]+";" { /* got the include file name */
<incl>[^
;
]+";" { /* got the include file name */
struct _yy_buffer *yb;
struct _include_path *ip;
char inc_file[MAXPGPATH];
...
...
@@ -870,6 +869,7 @@ cppline {space}*#(.*\\{space})*.*
else
{
struct _yy_buffer *yb = yy_buffer;
int i;
if (yyin != NULL)
fclose(yyin);
...
...
@@ -878,13 +878,18 @@ cppline {space}*#(.*\\{space})*.*
yy_switch_to_buffer(yy_buffer->buffer);
yylineno = yy_buffer->lineno;
/* We have to output the filename only if we change files here */
i = strcmp(input_filename, yy_buffer->filename);
free(input_filename);
input_filename = yy_buffer->filename;
yy_buffer = yy_buffer->next;
free(yb);
output_line_number();
if (i != 0)
output_line_number();
}
}
%%
...
...
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