Commit c9576ca1 authored by Michael Meskes's avatar Michael Meskes

*** empty log message ***

parent 92008a22
...@@ -875,5 +875,14 @@ Sun Mar 19 11:03:13 CET 2000 ...@@ -875,5 +875,14 @@ Sun Mar 19 11:03:13 CET 2000
Thu Mar 23 08:13:39 CET 2000 Thu Mar 23 08:13:39 CET 2000
- Synced preproc.y and keyword.c. - 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 library version to 3.1.0.
- Set ecpg version to 2.7.0. - Set ecpg version to 2.7.0.
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
# Copyright (c) 1994, Regents of the University of California # Copyright (c) 1994, Regents of the University of California
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/Makefile.in,v 1.64 2000/03/09 09:17:10 meskes Exp $ # $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/Makefile.in,v 1.65 2000/03/30 11:41:34 meskes Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -36,11 +36,6 @@ include $(SRCDIR)/Makefile.shlib ...@@ -36,11 +36,6 @@ include $(SRCDIR)/Makefile.shlib
install: install-lib $(install-shlib-dep) 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 .PHONY: clean
clean: clean-shlib clean: clean-shlib
......
...@@ -7,7 +7,7 @@ PATCHLEVEL=0 ...@@ -7,7 +7,7 @@ PATCHLEVEL=0
CFLAGS+=-I../include -DMAJOR_VERSION=$(MAJOR_VERSION) \ CFLAGS+=-I../include -DMAJOR_VERSION=$(MAJOR_VERSION) \
-DMINOR_VERSION=$(MINOR_VERSION) -DPATCHLEVEL=$(PATCHLEVEL) \ -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\ 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 keywords.o c_keywords.o ../lib/typename.o descriptor.o variable.o
...@@ -35,7 +35,7 @@ pgc.c: pgc.l ...@@ -35,7 +35,7 @@ pgc.c: pgc.l
mv lex.yy.c pgc.c mv lex.yy.c pgc.c
clean: 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: # And the garbage that might have been left behind by partial build:
rm -f y.tab.c y.tab.h lex.yy.c 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 # make clean does not remove preproc.c, preproc.h, pgc.c since we want
...@@ -47,10 +47,9 @@ install: all ...@@ -47,10 +47,9 @@ install: all
uninstall: uninstall:
rm -f $(BINDIR)/ecpg rm -f $(BINDIR)/ecpg
preproc.o: preproc.h ../include/ecpgtype.h keywords.c c_keywords.c ecpg_keywords.c depend dep: preproc.c pgc.c
type.o: ../include/ecpgtype.h $(CC) -MM $(CFLAGS) *.c >depend
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
ifeq (depend,$(wildcard depend))
include depend
endif
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.56 2000/03/18 18:03:10 tgl Exp $ * $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.57 2000/03/30 11:41:40 meskes Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -279,10 +279,10 @@ cppline {space}*#(.*\\{line_end})*.* ...@@ -279,10 +279,10 @@ cppline {space}*#(.*\\{line_end})*.*
{xcstart} { {xcstart} {
state_before = YYSTATE; state_before = YYSTATE;
ECHO;
BEGIN(xc); BEGIN(xc);
/* Put back any characters past slash-star; see above */ /* Put back any characters past slash-star; see above */
yyless(2); yyless(2);
fputs("/*", yyout);
} }
<xc>{xcstop} { ECHO; BEGIN(state_before); } <xc>{xcstop} { ECHO; BEGIN(state_before); }
...@@ -354,12 +354,12 @@ cppline {space}*#(.*\\{line_end})*.* ...@@ -354,12 +354,12 @@ cppline {space}*#(.*\\{line_end})*.*
<xq><<EOF>> { mmerror(ET_ERROR, "Unterminated quoted string"); } <xq><<EOF>> { mmerror(ET_ERROR, "Unterminated quoted string"); }
{xdstart} { <SQL>{xdstart} {
state_before = YYSTATE; state_before = YYSTATE;
BEGIN(xd); BEGIN(xd);
startlit(); startlit();
} }
<xd>{xdstop} { <xd,xdc>{xdstop} {
BEGIN(state_before); BEGIN(state_before);
yylval.str = mm_strdup(literalbuf); yylval.str = mm_strdup(literalbuf);
return CSTRING; return CSTRING;
...@@ -367,7 +367,15 @@ cppline {space}*#(.*\\{line_end})*.* ...@@ -367,7 +367,15 @@ cppline {space}*#(.*\\{line_end})*.*
<xd>{xdinside} { <xd>{xdinside} {
addlit(yytext, yyleng); 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>{typecast} { return TYPECAST; }
<SQL>{self} { /* <SQL>{self} { /*
* We may find a ';' inside a structure * We may find a ';' inside a structure
......
This diff is collapsed.
/****************************************************************************/
/* Test comment */
/*--------------------------------------------------------------------------*/
exec sql include header_test; exec sql include header_test;
exec sql type str is varchar[10]; exec sql type str is varchar[10];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment