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
c9576ca1
Commit
c9576ca1
authored
Mar 30, 2000
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
92008a22
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
164 additions
and
66 deletions
+164
-66
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/ChangeLog
+9
-0
src/interfaces/ecpg/lib/Makefile.in
src/interfaces/ecpg/lib/Makefile.in
+1
-6
src/interfaces/ecpg/preproc/Makefile.in
src/interfaces/ecpg/preproc/Makefile.in
+7
-8
src/interfaces/ecpg/preproc/pgc.l
src/interfaces/ecpg/preproc/pgc.l
+13
-5
src/interfaces/ecpg/preproc/preproc.y
src/interfaces/ecpg/preproc/preproc.y
+131
-47
src/interfaces/ecpg/test/test3.pgc
src/interfaces/ecpg/test/test3.pgc
+3
-0
No files found.
src/interfaces/ecpg/ChangeLog
View file @
c9576ca1
...
...
@@ -875,5 +875,14 @@ Sun Mar 19 11:03:13 CET 2000
Thu Mar 23 08:13:39 CET 2000
- Synced preproc.y and keyword.c.
Wed Mar 29 09:03:26 CEST 2000
- Fixed string parsing bug in pgc.l.
Thu Mar 30 11:11:13 CEST 2000
- Synced preproc.y with gram.y.
- Fixed comment parsing bug.
- Set library version to 3.1.0.
- Set ecpg version to 2.7.0.
src/interfaces/ecpg/lib/Makefile.in
View file @
c9576ca1
...
...
@@ -6,7 +6,7 @@
# Copyright (c) 1994, Regents of the University of California
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/Makefile.in,v 1.6
4 2000/03/09 09:17:10
meskes Exp $
# $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/Makefile.in,v 1.6
5 2000/03/30 11:41:34
meskes Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -36,11 +36,6 @@ include $(SRCDIR)/Makefile.shlib
install
:
install-lib $(install-shlib-dep)
# Handmade dependencies in case make depend not done
ecpglib.o
:
ecpglib.c ../include/ecpglib.h ../include/ecpgtype.h
typename.o
:
typename.c ../include/ecpgtype.h
.PHONY
:
clean
clean
:
clean-shlib
...
...
src/interfaces/ecpg/preproc/Makefile.in
View file @
c9576ca1
...
...
@@ -7,7 +7,7 @@ PATCHLEVEL=0
CFLAGS
+=
-I
../include
-DMAJOR_VERSION
=
$(MAJOR_VERSION)
\
-DMINOR_VERSION
=
$(MINOR_VERSION)
-DPATCHLEVEL
=
$(PATCHLEVEL)
\
-DINCLUDE_PATH
=
\"
$(HEADERDIR)
\"
-DINCLUDE_PATH
=
\"
$(HEADERDIR)
\"
OBJS
=
preproc.o pgc.o type.o ecpg.o ecpg_keywords.o output.o
\
keywords.o c_keywords.o ../lib/typename.o descriptor.o variable.o
...
...
@@ -35,7 +35,7 @@ pgc.c: pgc.l
mv
lex.yy.c pgc.c
clean
:
rm
-f
*
.o core a.out ecpg
$(X)
*
~
*
.output
rm
-f
*
.o core a.out ecpg
$(X)
*
~
*
.output
*
.tab.c
# And the garbage that might have been left behind by partial build:
rm
-f
y.tab.c
y.tab.h
lex.yy.c
# make clean does not remove preproc.c, preproc.h, pgc.c since we want
...
...
@@ -47,10 +47,9 @@ install: all
uninstall
:
rm
-f
$(BINDIR)
/ecpg
preproc.o
:
preproc.h ../include/ecpgtype.h keywords.c c_keywords.c ecpg_keywords.c
type.o
:
../include/ecpgtype.h
pgc.o
:
../include/ecpgtype.h keywords.c c_keywords.c ecpg_keywords.c preproc.h
keywords.o
:
../include/ecpgtype.h preproc.h
c_keywords.o
:
../include/ecpgtype.h preproc.h
ecpg_keywords.o
:
../include/ecpgtype.h preproc.h
depend dep
:
preproc.c pgc.c
$(CC)
-MM
$(CFLAGS)
*
.c
>
depend
ifeq
(depend,$(wildcard depend))
include
depend
endif
src/interfaces/ecpg/preproc/pgc.l
View file @
c9576ca1
...
...
@@ -12,7 +12,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.5
6 2000/03/18 18:03:10 tgl
Exp $
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.5
7 2000/03/30 11:41:40 meskes
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -279,10 +279,10 @@ cppline {space}*#(.*\\{line_end})*.*
{xcstart} {
state_before = YYSTATE;
ECHO;
BEGIN(xc);
/* Put back any characters past slash-star; see above */
yyless(2);
fputs("/*", yyout);
}
<xc>{xcstop} { ECHO; BEGIN(state_before); }
...
...
@@ -354,12 +354,12 @@ cppline {space}*#(.*\\{line_end})*.*
<xq><<EOF>> { mmerror(ET_ERROR, "Unterminated quoted string"); }
{xdstart} {
<SQL>
{xdstart} {
state_before = YYSTATE;
BEGIN(xd);
startlit();
}
<xd>{xdstop} {
<xd
,xdc
>{xdstop} {
BEGIN(state_before);
yylval.str = mm_strdup(literalbuf);
return CSTRING;
...
...
@@ -367,7 +367,15 @@ cppline {space}*#(.*\\{line_end})*.*
<xd>{xdinside} {
addlit(yytext, yyleng);
}
<xd><<EOF>> { mmerror(ET_ERROR, "Unterminated quoted identifier"); }
<xd,xdc><<EOF>> { mmerror(ET_ERROR, "Unterminated quoted identifier"); }
{xdstart} {
state_before = YYSTATE;
BEGIN(xdc);
startlit();
}
<xdc>{xdcinside} {
addlit(yytext, yyleng);
}
<SQL>{typecast} { return TYPECAST; }
<SQL>{self} { /*
* We may find a ';' inside a structure
...
...
src/interfaces/ecpg/preproc/preproc.y
View file @
c9576ca1
This diff is collapsed.
Click to expand it.
src/interfaces/ecpg/test/test3.pgc
View file @
c9576ca1
/****************************************************************************/
/* Test comment */
/*--------------------------------------------------------------------------*/
exec sql include header_test;
exec sql type str is varchar[10];
...
...
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