Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8425c24

Browse files
committed
Ah, *now* I understand: plpgsql lexer must be generated with flex -l ...
1 parent7ed3b89 commit8425c24

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

‎src/pl/plpgsql/src/Makefile.in

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Makefile for the plpgsql shared object
55
#
66
# IDENTIFICATION
7-
# $Header: /cvsroot/pgsql/src/pl/plpgsql/src/Attic/Makefile.in,v 1.15 1999/03/20 18:00:38 tgl Exp $
7+
# $Header: /cvsroot/pgsql/src/pl/plpgsql/src/Attic/Makefile.in,v 1.16 1999/03/21 02:27:46 tgl Exp $
88
#
99
#-------------------------------------------------------------------------
1010

@@ -20,7 +20,10 @@ CFLAGS+= -I$(LIBPQDIR) -I$(SRCDIR)/include
2020
# For fmgr.h
2121
CFLAGS+= -I$(SRCDIR)/backend
2222

23+
# If using flex, ask for a case-insensitive, lex-compatible lexer.
24+
ifneq (,$(findstring flex,$(LEX)))
2325
LFLAGS+= -i -l
26+
endif
2427

2528
OBJS=pl_parse.o pl_handler.o pl_comp.o pl_exec.o pl_funcs.o
2629

@@ -67,7 +70,7 @@ pl_gram.c pl.tab.h:gram.y
6770
rm -f y.tab.c y.tab.h
6871

6972
pl_scan.c:scan.l
70-
$(LEX)$<
73+
$(LEX)$(LFLAGS)$<
7174
sed -e's/yy/plpgsql_yy/g' -e's/YY/PLPGSQL_YY/g'<lex.yy.c>pl_scan.c
7275
rm -f lex.yy.c
7376

‎src/pl/plpgsql/src/gram.y

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* procedural language
55
*
66
* IDENTIFICATION
7-
* $Header: /cvsroot/pgsql/src/pl/plpgsql/src/gram.y,v 1.3 1999/03/2101:07:07 tgl Exp $
7+
* $Header: /cvsroot/pgsql/src/pl/plpgsql/src/gram.y,v 1.4 1999/03/2102:27:47 tgl Exp $
88
*
99
* This software is copyrighted by Jan Wieck - Hamburg.
1010
*
@@ -40,8 +40,6 @@
4040
#include"string.h"
4141
#include"plpgsql.h"
4242

43-
externintyylineno;/* not always declared by lexer...*/
44-
4543
#include"pl_scan.c"
4644

4745
staticPLpgSQL_expr*read_sqlstmt(int until,char *s,char *sqlstart);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp