xref: /original-bsd/lib/libc/regex/utils.h (revision b4971bb3)
1 /*-
2  * Copyright (c) 1992 Henry Spencer.
3  * Copyright (c) 1992, 1993
4  *	The Regents of the University of California.  All rights reserved.
5  *
6  * This code is derived from software contributed to Berkeley by
7  * Henry Spencer of the University of Toronto.
8  *
9  * %sccs.include.redist.c%
10  *
11  *	@(#)utils.h	8.1 (Berkeley) 06/04/93
12  */
13 
14 /* utility definitions */
15 #define	DUPMAX		_POSIX2_RE_DUP_MAX	/* xxx is this right? */
16 #define	INFINITY	(DUPMAX+1)
17 #define	NC		((CHAR_MAX)-(CHAR_MIN)+1)
18 
19 typedef unsigned char uchar;
20 
21 #ifndef REDEBUG
22 #ifndef NDEBUG
23 #define	NDEBUG	/* no assertions please */
24 #endif
25 #endif
26 #include <assert.h>
27