f68c1e29278acf91b4a287d75536eeda255633a1
* Copyright (c) 1988 Regents of the University of California.
* %sccs.include.redist.c%
* @(#)useful.h 6.3 (Berkeley) %G%
/* support for ANSI prototypes (or not, as the case may be) */
#if defined(__STDC__) && defined(_FORGIVING_CC_)
/* support for bool type */
# define bitset(bit, word) (((word) & (bit)) != 0)
/* some simple functions */
# define max(a, b) ((a) > (b) ? (a) : (b))
# define min(a, b) ((a) < (b) ? (a) : (b))
# define ASSERT(expr, msg, parm)\
fprintf(stderr, "assertion botch: %s:%d: ", __FILE__, __LINE__);\
fprintf(stderr, msg, parm);\
# define ASSERT(expr, msg, parm)
# define SCCSID(arg) static char SccsId[] = "arg";