/*-=-=-=-=-=-=-=-=-=-=-=- RCCL/RCI Notice of Copyright -=-=-=-=-=-=-=-=-=-=-*
 *									    *
 *	Copyright (C) 1987, 1991 by John E. Lloyd.			    *
 *									    *
 *	Information on copyright permissions, as well as a complete	    *
 *	disclaimer of warranty, is given in the file COPYRIGHT.		    *
 *									    *
 *-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/

#ifndef _CDEFS_H_
#define _CDEFS_H_

#ifdef NULL
#undef NULL
#endif
#define NULL	0
#define NULLF	(int(*)())0

#define YES	1
#define NO	0
#define UNDEF   -1

#ifndef MIN
#define MIN(x,y)	((x) < (y) ? (x) : (y))
#endif
#ifndef MAX
#define MAX(x,y)	((x) > (y) ? (x) : (y))
#endif
#ifndef ABS
#define ABS(x)		((x) < 0 ? -(x) : (x))
#endif
#define FABS(x)		((x) < 0.0 ? -(x) : (x))
#define NINT(x)		((int)(((x)<0) ? ((x)-0.5) : ((x)+0.5)))

#define ARRAY_SIZE(a)	(sizeof(a)/sizeof(a[0]))   /* # of array elements */

#endif
