aboutsummaryrefslogtreecommitdiff
path: root/src/backend/regex/retest.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2003-02-05 17:41:33 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2003-02-05 17:41:33 +0000
commit7bcc6d98fb5c3bda2787ae085ef3ff3dbb65ae42 (patch)
tree7a269b416abdaec2b9b78c32ce485390aae1cda3 /src/backend/regex/retest.c
parent32c3db0f86cdf23646094b06331f71e42fd4e413 (diff)
downloadpostgresql-7bcc6d98fb5c3bda2787ae085ef3ff3dbb65ae42.tar.gz
postgresql-7bcc6d98fb5c3bda2787ae085ef3ff3dbb65ae42.zip
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.
Diffstat (limited to 'src/backend/regex/retest.c')
-rw-r--r--src/backend/regex/retest.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/src/backend/regex/retest.c b/src/backend/regex/retest.c
deleted file mode 100644
index ca5d6c5394a..00000000000
--- a/src/backend/regex/retest.c
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * a simple regexp debug program
- *
- * $Header: /cvsroot/pgsql/src/backend/regex/Attic/retest.c,v 1.5 2002/06/11 15:41:37 thomas Exp $
- */
-
-#include "postgres.h"
-#include "regex/regex.h"
-
-int
-main()
-{
- int sts;
- regex_t re;
- char buf[1024];
- char *p;
-
- printf("type in regexp string: ");
- if (!fgets(buf, sizeof(buf), stdin))
- exit(0);
- p = strchr(buf, '\n');
- if (p)
- *p = '\0';
-
- sts = pg_regcomp(&re, buf, 1);
- printf("regcomp: parses \"%s\" and returns %d\n", buf, sts);
- for (;;)
- {
- printf("type in target string: ");
- if (!fgets(buf, sizeof(buf), stdin))
- exit(0);
- p = strchr(buf, '\n');
- if (p)
- *p = '\0';
-
- sts = pg_regexec(&re, buf, 0, 0, 0);
- printf("regexec: returns %d\n", sts);
- }
-}
-
-void
-elog(int lev, const char *fmt,...)
-{
-}