summaryrefslogtreecommitdiffstats
path: root/generic/regex.h
diff options
context:
space:
mode:
authorhobbs <hobbs>1999-10-13 02:22:16 (GMT)
committerhobbs <hobbs>1999-10-13 02:22:16 (GMT)
commit71fd2723b9468b0424d08077814238e4201c53d4 (patch)
treefd90266acf9550bec088e4be1aade4a25b3acfea /generic/regex.h
parent70325c9bcdba6fa60b67d70caadab8e46f08b677 (diff)
downloadtcl-71fd2723b9468b0424d08077814238e4201c53d4.zip
tcl-71fd2723b9468b0424d08077814238e4201c53d4.tar.gz
tcl-71fd2723b9468b0424d08077814238e4201c53d4.tar.bz2
* generic/regc_color.c:
* generic/regc_cvec.c: * generic/regc_lex.c: * generic/regc_locale.c: * generic/regcomp.c: * generic/regcustom.h: * generic/regerrs.h: * generic/regex.h: * generic/regexec.c: * generic/regguts.h: * generic/tclRegexp.c: * generic/tclTest.c: * tests/reg.test: updated to Henry Spencer's new regexp engine (mid-Sept 99). Should greatly reduce stack space reqs.
Diffstat (limited to 'generic/regex.h')
-rw-r--r--generic/regex.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/generic/regex.h b/generic/regex.h
index 0016005..8289a50 100644
--- a/generic/regex.h
+++ b/generic/regex.h
@@ -101,6 +101,12 @@ extern "C" {
#ifdef __REG_CONST
#undef __REG_CONST
#endif
+#ifdef __REG_NOFRONT
+#undef __REG_NOFRONT
+#endif
+#ifdef __REG_NOCHAR
+#undef __REG_NOCHAR
+#endif
/* interface types */
#define __REG_WIDE_T Tcl_UniChar
#define __REG_REGOFF_T long /* not really right, but good enough... */
@@ -109,12 +115,8 @@ extern "C" {
/* names and declarations */
#define __REG_WIDE_COMPILE TclReComp
#define __REG_WIDE_EXEC TclReExec
-#ifndef __REG_NOFRONT
#define __REG_NOFRONT /* don't want regcomp() and regexec() */
-#endif
-#ifndef __REG_NOCHAR
#define __REG_NOCHAR /* or the char versions */
-#endif
#define regfree TclReFree
#define regerror TclReError
/* --- end --- */
@@ -163,7 +165,7 @@ typedef void re_void;
typedef struct {
int re_magic; /* magic number */
size_t re_nsub; /* number of subexpressions */
- int re_info; /* information about RE */
+ long re_info; /* information about RE */
# define REG_UBACKREF 000001
# define REG_ULOOKAHEAD 000002
# define REG_UBOUNDS 000004
@@ -177,6 +179,7 @@ typedef struct {
# define REG_ULOCALE 002000
# define REG_UEMPTYMATCH 004000
# define REG_UIMPOSSIBLE 010000
+# define REG_USHORTEST 020000
int re_csize; /* sizeof(character) */
char *re_endp; /* backward compatibility kludge */
/* the rest is opaque pointers to hidden innards */
@@ -225,7 +228,7 @@ typedef struct {
#define REG_EXPECT 001000 /* report details on partial/limited matches */
#define REG_BOSONLY 002000 /* temporary kludge for BOS-only matches */
#define REG_DUMP 004000 /* none of your business :-) */
-#define REG_FAKEEC 010000 /* none of your business :-) */
+#define REG_FAKE 010000 /* none of your business :-) */
#define REG_PROGRESS 020000 /* none of your business :-) */