xref: /csrg-svn/lib/libc/regex/utils.h (revision 61164)
155853Sbostic /*-
255853Sbostic  * Copyright (c) 1992 Henry Spencer.
3*61164Sbostic  * Copyright (c) 1992, 1993
4*61164Sbostic  *	The Regents of the University of California.  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*61164Sbostic  *	@(#)utils.h	8.1 (Berkeley) 06/04/93
1255853Sbostic  */
1355853Sbostic 
1455853Sbostic /* utility definitions */
1555853Sbostic #define	DUPMAX		_POSIX2_RE_DUP_MAX	/* xxx is this right? */
1655853Sbostic #define	INFINITY	(DUPMAX+1)
1760609Sbostic #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