mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-17 19:30:00 +08:00
Ah, *now* I understand: plpgsql lexer must be generated with flex -l ...
This commit is contained in:
parent
7ed3b89d48
commit
8425c2496f
@ -4,7 +4,7 @@
|
||||
# Makefile for the plpgsql shared object
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/pl/plpgsql/src/Attic/Makefile.in,v 1.15 1999/03/20 18:00:38 tgl Exp $
|
||||
# $Header: /cvsroot/pgsql/src/pl/plpgsql/src/Attic/Makefile.in,v 1.16 1999/03/21 02:27:46 tgl Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
@ -20,7 +20,10 @@ CFLAGS+= -I$(LIBPQDIR) -I$(SRCDIR)/include
|
||||
# For fmgr.h
|
||||
CFLAGS+= -I$(SRCDIR)/backend
|
||||
|
||||
# If using flex, ask for a case-insensitive, lex-compatible lexer.
|
||||
ifneq (,$(findstring flex,$(LEX)))
|
||||
LFLAGS+= -i -l
|
||||
endif
|
||||
|
||||
OBJS= pl_parse.o pl_handler.o pl_comp.o pl_exec.o pl_funcs.o
|
||||
|
||||
@ -67,7 +70,7 @@ pl_gram.c pl.tab.h: gram.y
|
||||
rm -f y.tab.c y.tab.h
|
||||
|
||||
pl_scan.c: scan.l
|
||||
$(LEX) $<
|
||||
$(LEX) $(LFLAGS) $<
|
||||
sed -e 's/yy/plpgsql_yy/g' -e 's/YY/PLPGSQL_YY/g' <lex.yy.c >pl_scan.c
|
||||
rm -f lex.yy.c
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
* procedural language
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/pl/plpgsql/src/gram.y,v 1.3 1999/03/21 01:07:07 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/pl/plpgsql/src/gram.y,v 1.4 1999/03/21 02:27:47 tgl Exp $
|
||||
*
|
||||
* This software is copyrighted by Jan Wieck - Hamburg.
|
||||
*
|
||||
@ -40,8 +40,6 @@
|
||||
#include "string.h"
|
||||
#include "plpgsql.h"
|
||||
|
||||
extern int yylineno; /* not always declared by lexer... */
|
||||
|
||||
#include "pl_scan.c"
|
||||
|
||||
static PLpgSQL_expr *read_sqlstmt(int until, char *s, char *sqlstart);
|
||||
|
Loading…
Reference in New Issue
Block a user