Back to index

php5  5.3.10
utils.h
Go to the documentation of this file.
00001 /* utility definitions */
00002 
00003 #ifdef _POSIX2_RE_DUP_MAX
00004 #define       DUPMAX _POSIX2_RE_DUP_MAX
00005 #else
00006 #define       DUPMAX 255
00007 #endif
00008 #define       INFINITY      (DUPMAX + 1)
00009 #define       NC            (CHAR_MAX - CHAR_MIN + 1)
00010 typedef unsigned char uch;
00011 
00012 /* switch off assertions (if not already off) if no REDEBUG */
00013 #ifndef REDEBUG
00014 #ifndef NDEBUG
00015 #define       NDEBUG /* no assertions please */
00016 #endif
00017 #endif
00018 #include <assert.h>
00019 
00020 /* for old systems with bcopy() but no memmove() */
00021 #ifdef USEBCOPY
00022 #define       memmove(d, s, c)     bcopy(s, d, c)
00023 #endif