- Notifications
You must be signed in to change notification settings - Fork 7.8k
/
Copy pathutils.h
22 lines (19 loc) · 536 Bytes
/
utils.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* utility definitions */
#ifndef_POSIX2_RE_DUP_MAX
#define_POSIX2_RE_DUP_MAX 255
#endif
#defineDUPMAX _POSIX2_RE_DUP_MAX /* xxx is this right? */
#defineINFINITY (DUPMAX + 1)
#defineNC (CHAR_MAX - CHAR_MIN + 1)
typedefunsigned charuch;
/* switch off assertions (if not already off) if no REDEBUG */
#ifndefREDEBUG
#ifndefNDEBUG
#defineNDEBUG/* no assertions please */
#endif
#endif
#include<assert.h>
/* for old systems with bcopy() but no memmove() */
#ifdefUSEBCOPY
#definememmove(d, s, c) bcopy(s, d, c)
#endif