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
3a81a1a4
Commit
3a81a1a4
authored
Mar 03, 2000
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
85b2875a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
30 deletions
+24
-30
doc/src/sgml/ecpg.sgml
doc/src/sgml/ecpg.sgml
+1
-1
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/ChangeLog
+4
-0
src/interfaces/ecpg/preproc/pgc.l
src/interfaces/ecpg/preproc/pgc.l
+18
-27
src/interfaces/ecpg/preproc/preproc.y
src/interfaces/ecpg/preproc/preproc.y
+1
-2
No files found.
doc/src/sgml/ecpg.sgml
View file @
3a81a1a4
...
...
@@ -2,7 +2,7 @@
<
DocInfo
>
<
AuthorGroup
>
<
Author
>
<
FirstName
>
Linu
x
</
FirstName
>
<
FirstName
>
Linu
s
</
FirstName
>
<
Surname
>
Tolke
</
Surname
>
</
Author
>
<
Author
>
...
...
src/interfaces/ecpg/ChangeLog
View file @
3a81a1a4
...
...
@@ -848,5 +848,9 @@ Thu Mar 2 17:42:16 CET 2000
- Print error message if an indicator array is given for input
variables.
Fri Mar 3 10:47:06 CET 2000
- Fixed handling of double quote in C code.
- Set library version to 3.1.0.
- Set ecpg version to 2.7.0.
src/interfaces/ecpg/preproc/pgc.l
View file @
3a81a1a4
...
...
@@ -12,7 +12,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.5
1 2000/02/22 19:57:10
meskes Exp $
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.5
2 2000/03/03 09:56:03
meskes Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -51,7 +51,7 @@ static int literalalloc; /* current allocated buffer size */
#define startlit() (literalbuf[0] = '\0', literallen = 0)
static void addlit(char *ytext, int yleng);
int
before_comment
;
int
state_before
;
struct _yy_buffer { YY_BUFFER_STATE buffer;
long lineno;
...
...
@@ -268,12 +268,12 @@ cppline {space}*#(.*\\{line_end})*.*
{xcline} { ECHO; }
{xcstart} {
before_comment
= YYSTATE;
state_before
= YYSTATE;
ECHO;
BEGIN(xc);
}
<xc>{xcstop} { ECHO; BEGIN(
before_comment
); }
<xc>{xcstop} { ECHO; BEGIN(
state_before
); }
<xc>{xcinside} { ECHO; }
...
...
@@ -303,7 +303,7 @@ cppline {space}*#(.*\\{line_end})*.*
BEGIN(xh);
startlit();
}
<xh>{xhstop} {
<xh>{xhstop}
{
char* endptr;
BEGIN(SQL);
...
...
@@ -314,45 +314,36 @@ cppline {space}*#(.*\\{line_end})*.*
return ICONST;
}
<SQL>{xqstart} {
{xqstart} {
state_before == YYSTATE;
BEGIN(xq);
startlit();
}
<xq>{xqstop} {
BEGIN(
SQL
);
<xq>{xqstop}
{
BEGIN(
state_before
);
yylval.str = mm_strdup(literalbuf);
return SCONST;
}
<xq>{xqdouble} |
<xq>{xqinside} |
<xq>{xqliteral} {
<xq>{xqliteral}
{
addlit(yytext, yyleng);
}
<xq>{xqcat} { /* ignore */
<xq>{xqcat} {
/* ignore */
}
<SQL>{xdstart} {
{xdstart} {
state_before = YYSTATE;
BEGIN(xd);
startlit();
}
<xd>{xdstop} {
BEGIN(SQL);
yylval.str = mm_strdup(literalbuf);
return CSTRING;
}
<xd>{xdinside} {
addlit(yytext, yyleng);
}
{xdstart} {
BEGIN(xdc);
startlit();
}
<xdc>{xdstop} {
BEGIN(C);
<xd>{xdstop} {
BEGIN(state_before);
yylval.str = mm_strdup(literalbuf);
return CSTRING;
}
<xd
c>{xdcinside}
{
<xd
>{xdinside}
{
addlit(yytext, yyleng);
}
<SQL>{typecast} { return TYPECAST; }
...
...
@@ -365,7 +356,7 @@ cppline {space}*#(.*\\{line_end})*.*
BEGIN C;
return yytext[0];
}
<SQL>{operator} {
<SQL>{operator}
{
if (strcmp((char*)yytext,"!=") == 0)
yylval.str = mm_strdup("<>"); /* compatability */
else
...
...
src/interfaces/ecpg/preproc/preproc.y
View file @
3a81a1a4
...
...
@@ -5086,6 +5086,7 @@ c_anything: IDENT { $$ = $1; }
| CSTRING { $$ = make3_str(make_str("\""), $1, make_str("\"")); }
| Iconst { $$ = $1; }
| Fconst { $$ = $1; }
| Sconst { $$ = $1; }
| '*' { $$ = make_str("*"); }
| '+' { $$ = make_str("+"); }
| '-' { $$ = make_str("-"); }
...
...
@@ -5112,8 +5113,6 @@ c_anything: IDENT { $$ = $1; }
| VARCHAR { $$ = make_str("varchar"); }
| '[' { $$ = make_str("["); }
| ']' { $$ = make_str("]"); }
/* | '(' { $$ = make_str("("); }
| ')' { $$ = make_str(")"); }*/
| '=' { $$ = make_str("="); }
blockstart : '{' {
...
...
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