diff options
author | stanton <stanton> | 1998-11-11 01:44:46 (GMT) |
---|---|---|
committer | stanton <stanton> | 1998-11-11 01:44:46 (GMT) |
commit | 0a41c61107c36da0a8e4ca0fc259149e3bc1956d (patch) | |
tree | 37f7fe5f0b8a64e08aae1446bb8cdd4516256a01 /generic/regcustom.h | |
parent | 3774776e7bc507091c0793c14cfd8fb45484e054 (diff) | |
download | tcl-0a41c61107c36da0a8e4ca0fc259149e3bc1956d.zip tcl-0a41c61107c36da0a8e4ca0fc259149e3bc1956d.tar.gz tcl-0a41c61107c36da0a8e4ca0fc259149e3bc1956d.tar.bz2 |
integrated latest regexp updates from Henry Spencer, includes new
regexp switches "-line", "-lineanchor", and "-linestop" for
controlling newline behavior
Diffstat (limited to 'generic/regcustom.h')
-rw-r--r-- | generic/regcustom.h | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/generic/regcustom.h b/generic/regcustom.h index 0fda25f..eeaafa0 100644 --- a/generic/regcustom.h +++ b/generic/regcustom.h @@ -37,17 +37,20 @@ #endif /* interface types */ #define __REG_WIDE_T Tcl_UniChar -#define __REG_WIDE_COMPILE re_ucomp -#define __REG_WIDE_EXEC re_uexec #define __REG_REGOFF_T long /* not really right, but good enough... */ #define __REG_VOID_T VOID #define __REG_CONST CONST +/* names and declarations */ +#define __REG_WIDE_COMPILE re_ucomp +#define __REG_WIDE_EXEC re_uexec #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 re_ufree +#define regerror re_uerror /* --- end --- */ @@ -73,18 +76,11 @@ typedef int celt; /* type to hold chr, MCCE number, or NOCELT */ /* name the external functions */ #define compile re_ucomp #define exec re_uexec + +/* enable/disable debugging code (by whether REG_DEBUG is defined or not) */ #ifdef notdef -#define regfree re_ufree -#define regerror re_uerror +#define REG_DEBUG /* */ #endif -/* - * Implement a mistake in the original POSIX.2: in EREs, and only in EREs - * (AREs do not support this botch), an unbalanced right parenthesis is an - * ordinary character rather than an error. This was unintentional, and - * will be fixed someday. - */ -#define POSIX_MISTAKE /* sigh */ - /* and pick up the standard header */ #include "regex.h" |