Imported Upstream version 2.5.1
[debian/amanda] / regex-src / utils.h
1 #ifndef REGEX_UTILS_H
2 #define REGEX_UTILS_H
3
4 /* utility definitions */
5 #ifdef _POSIX2_RE_DUP_MAX
6 #define DUPMAX  _POSIX2_RE_DUP_MAX
7 #else
8 #define DUPMAX  255
9 #endif
10 #define REINFINITY      (DUPMAX + 1)
11 #define NC              (CHAR_MAX - CHAR_MIN + 1)
12 typedef unsigned char uch;
13
14 /* switch off assertions (if not already off) if no REDEBUG */
15 #ifndef REDEBUG
16 #ifndef NDEBUG
17 #define NDEBUG  /* no assertions please */
18 #endif
19 #endif
20 #include <assert.h>
21 /* for old systems with bcopy() but no memmove() */
22 #ifdef USEBCOPY
23 #define memmove(d, s, c)        bcopy(s, d, c)
24 #endif
25
26 #endif  /* !REGEX_UTILS_H */