From aceaabceffd537a0ed83fa25e189b08eae585f4a Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Wed, 7 Apr 1999 21:05:13 +0000 Subject: PHP 4.0 --- regex/utils.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 regex/utils.h (limited to 'regex/utils.h') diff --git a/regex/utils.h b/regex/utils.h new file mode 100644 index 0000000000..f271f759b1 --- /dev/null +++ b/regex/utils.h @@ -0,0 +1,22 @@ +/* utility definitions */ +#ifndef _POSIX2_RE_DUP_MAX +#define _POSIX2_RE_DUP_MAX 255 +#endif + +#define DUPMAX _POSIX2_RE_DUP_MAX /* xxx is this right? */ +#define INFINITY (DUPMAX + 1) +#define NC (CHAR_MAX - CHAR_MIN + 1) +typedef unsigned char uch; + +/* switch off assertions (if not already off) if no REDEBUG */ +#ifndef REDEBUG +#ifndef NDEBUG +#define NDEBUG /* no assertions please */ +#endif +#endif +#include + +/* for old systems with bcopy() but no memmove() */ +#ifdef USEBCOPY +#define memmove(d, s, c) bcopy(s, d, c) +#endif -- cgit v1.2.1