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
adeedf90
Commit
adeedf90
authored
Oct 17, 2000
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed some bugs in C language parsing.
parent
0db3cb25
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
11 deletions
+26
-11
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/ChangeLog
+5
-1
src/interfaces/ecpg/TODO
src/interfaces/ecpg/TODO
+2
-0
src/interfaces/ecpg/preproc/pgc.l
src/interfaces/ecpg/preproc/pgc.l
+6
-1
src/interfaces/ecpg/preproc/preproc.y
src/interfaces/ecpg/preproc/preproc.y
+7
-2
src/interfaces/ecpg/test/Makefile
src/interfaces/ecpg/test/Makefile
+1
-1
src/interfaces/ecpg/test/test_init.pgc
src/interfaces/ecpg/test/test_init.pgc
+5
-6
No files found.
src/interfaces/ecpg/ChangeLog
View file @
adeedf90
...
...
@@ -972,6 +972,10 @@ Mon Oct 16 21:33:17 CEST 2000
Tue Oct 17 08:09:16 CEST 2000
- Simplified parsing ofr connect rule.
- Simplified parsing of connect rule.
Tue Oct 17 17:36:30 CEST 2000
- Fixed some bugs in C language parsing.
- Set ecpg version to 2.8.0.
- Set library version to 3.2.0.
src/interfaces/ecpg/TODO
View file @
adeedf90
...
...
@@ -20,5 +20,7 @@ instead of libpq so we can write backend functions using ecpg.
remove space_or_nl and line_end from pgc.l
nested C comments do not work
Missing features:
- SQLSTATE
src/interfaces/ecpg/preproc/pgc.l
View file @
adeedf90
...
...
@@ -12,7 +12,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.6
4 2000/09/26 11:41:44
meskes Exp $
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.6
5 2000/10/17 15:38:25
meskes Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -676,6 +676,11 @@ cppline {space}*#(.*\\{line_end})*.*
<C>\[ { return('['); }
<C>\] { return(']'); }
<C>\= { return('='); }
<C>"->" { return(S_MEMBER); }
<C>">>" { return(S_RSHIFT); }
<C>"<<" { return(S_LSHIFT); }
<C>"||" { return(S_OR); }
<C>"&&" { return(S_AND); }
<C>{other} { return S_ANYTHING; }
<C>{exec_sql}{define}{space_or_nl}* { BEGIN(def_ident); }
...
...
src/interfaces/ecpg/preproc/preproc.y
View file @
adeedf90
...
...
@@ -174,8 +174,8 @@ make_name(void)
%token SQL_VALUE SQL_VAR SQL_WHENEVER
/* C token */
%token S_AN
YTHING S_AUTO S_CONST S_EXTERN
%token S_
REGISTER
S_STATIC S_VOLATILE
%token S_AN
D S_ANYTHING S_AUTO S_CONST S_EXTERN S_LSHIFT
%token S_
MEMBER S_OR S_REGISTER S_RSHIFT
S_STATIC S_VOLATILE
/* I need this and don't know where it is defined inside the backend */
%token TYPECAST
...
...
@@ -5298,11 +5298,16 @@ c_anything: IDENT { $$ = $1; }
| '-' { $$ = make_str("-"); }
| '/' { $$ = make_str("/"); }
| '%' { $$ = make_str("%"); }
| S_AND { $$ = make_str("&&"); }
| S_ANYTHING { $$ = make_name(); }
| S_AUTO { $$ = make_str("auto"); }
| S_CONST { $$ = make_str("const"); }
| S_EXTERN { $$ = make_str("extern"); }
| S_LSHIFT { $$ = make_str("<<"); }
| S_MEMBER { $$ = make_str("->"); }
| S_OR { $$ = make_str("||"); }
| S_REGISTER { $$ = make_str("register"); }
| S_RSHIFT { $$ = make_str(">>"); }
| S_STATIC { $$ = make_str("static"); }
| SQL_BOOL { $$ = make_str("bool"); }
| SQL_ENUM { $$ = make_str("enum"); }
...
...
src/interfaces/ecpg/test/Makefile
View file @
adeedf90
all
:
test1 test2 test3 test4 perftest dyntest dyntest2 test_notice test_code100
all
:
test1 test2 test3 test4 perftest dyntest dyntest2 test_notice test_code100
test_init
#LDFLAGS=-g -I /usr/local/pgsql/include -L/usr/local/pgsql/lib -lecpg -lpq
LDFLAGS
=
-g
-I
../include
-I
/usr/include/postgresql
-L
/usr/lib
-lecpg
-lpq
...
...
src/interfaces/ecpg/test/test_init.pgc
View file @
adeedf90
...
...
@@ -31,14 +31,13 @@ int g=fb(2);
int i=3^1;
int j=1?1:2;
/*int e=y->member; /* compile error */
/*int c=10>>2; /* compile error */
/*bool h=2||1; /* compile error */
long long iax;
int e=y->member;
int c=10>>2;
bool h=2||1;
long iay /* = 1L */ ;
long long iax /* = 40000000000LL */ ;
exec sql end declare section;
iax = 40000000000LL;
/* not working */
int f=fa();
...
...
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