From 3afee2ec57f662bd06a1da7794ce08f0504da2a0 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Thu, 31 Jul 2014 00:47:25 -0700 Subject: Forgot to actually add all of these new files for the new regex code. --- win32/regex/utils.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 win32/regex/utils.h (limited to 'win32/regex/utils.h') diff --git a/win32/regex/utils.h b/win32/regex/utils.h new file mode 100644 index 0000000..1a997ac --- /dev/null +++ b/win32/regex/utils.h @@ -0,0 +1,22 @@ +/* utility definitions */ +#ifdef _POSIX2_RE_DUP_MAX +#define DUPMAX _POSIX2_RE_DUP_MAX +#else +#define DUPMAX 255 +#endif +#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.3