xref: /csrg-svn/lib/libc/regex/utils.h (revision 60609)
155853Sbostic /*-
255853Sbostic  * Copyright (c) 1992 Henry Spencer.
355853Sbostic  * Copyright (c) 1992 The Regents of the University of California.
455853Sbostic  * All rights reserved.
555853Sbostic  *
655853Sbostic  * This code is derived from software contributed to Berkeley by
755853Sbostic  * Henry Spencer of the University of Toronto.
855853Sbostic  *
955853Sbostic  * %sccs.include.redist.c%
1055853Sbostic  *
11*60609Sbostic  *	@(#)utils.h	5.4 (Berkeley) 05/30/93
1255853Sbostic  */
1355853Sbostic 
1455853Sbostic /* utility definitions */
1555853Sbostic #define	DUPMAX		_POSIX2_RE_DUP_MAX	/* xxx is this right? */
1655853Sbostic #define	INFINITY	(DUPMAX+1)
17*60609Sbostic #define	NC		((CHAR_MAX)-(CHAR_MIN)+1)
1860201Sbostic 
1955853Sbostic typedef unsigned char uchar;
2055853Sbostic 
2156355Sbostic #ifndef REDEBUG
2256355Sbostic #ifndef NDEBUG
2356355Sbostic #define	NDEBUG	/* no assertions please */
2455853Sbostic #endif
2556355Sbostic #endif
2656355Sbostic #include <assert.h>
27