mirror of
https://github.com/postgres/postgres.git
synced 2025-08-28 18:48:04 +03:00
Replace regular expression package with Henry Spencer's latest version
(extracted from Tcl 8.4.1 release, as Henry still hasn't got round to making it a separate library). This solves a performance problem for multibyte, as well as upgrading our regexp support to match recent Tcl and nearly match recent Perl.
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile--
|
||||
# Makefile for regex
|
||||
# Makefile for backend/regex
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/backend/regex/Makefile,v 1.19 2002/09/16 16:02:43 momjian Exp $
|
||||
# $Header: /cvsroot/pgsql/src/backend/regex/Makefile,v 1.20 2003/02/05 17:41:32 tgl Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
@@ -12,23 +12,17 @@ subdir = src/backend/regex
|
||||
top_builddir = ../../..
|
||||
include $(top_builddir)/src/Makefile.global
|
||||
|
||||
override CPPFLAGS += -DPOSIX_MISTAKE
|
||||
|
||||
OBJS = regcomp.o regerror.o regexec.o regfree.o
|
||||
DEBUGOBJ += ../utils/mb/SUBSYS.o
|
||||
|
||||
all: SUBSYS.o
|
||||
|
||||
SUBSYS.o: $(OBJS)
|
||||
$(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)
|
||||
|
||||
regexec.o: regexec.c engine.c
|
||||
# mark inclusion dependencies between .c files explicitly
|
||||
regcomp.o: regcomp.c regc_lex.c regc_color.c regc_nfa.c regc_cvec.c regc_locale.c
|
||||
|
||||
# retest will not compile because multibyte is now enabled by default
|
||||
# and the multibyte calls require /mmgr, /adt, and other calls that
|
||||
# are complex for linkage, bjm 2002-09-16
|
||||
#retest: retest.o SUBSYS.o $(DEBUGOBJ)
|
||||
# $(CC) $(CFLAGS) $(LDFLAGS) $^ $(LIBS) -o $@
|
||||
regexec.o: regexec.c rege_dfa.c
|
||||
|
||||
clean:
|
||||
rm -f SUBSYS.o $(OBJS) retest retest.o
|
||||
rm -f SUBSYS.o $(OBJS)
|
||||
|
Reference in New Issue
Block a user