xref: /PHP-5.4/ext/ereg/regex/utils.h (revision aa3eee1d)
1 /* utility definitions */
2 
3 #ifdef _POSIX2_RE_DUP_MAX
4 #define	DUPMAX	_POSIX2_RE_DUP_MAX
5 #else
6 #define	DUPMAX	255
7 #endif
8 #define	INFINITY	(DUPMAX + 1)
9 #define	NC		(CHAR_MAX - CHAR_MIN + 1)
10 typedef unsigned char uch;
11 
12 /* switch off assertions (if not already off) if no REDEBUG */
13 #ifndef REDEBUG
14 #ifndef NDEBUG
15 #define	NDEBUG	/* no assertions please */
16 #endif
17 #endif
18 #include <assert.h>
19 
20 /* for old systems with bcopy() but no memmove() */
21 #ifdef USEBCOPY
22 #define	memmove(d, s, c)	bcopy(s, d, c)
23 #endif
24