/* Copyright (c) 1993 Xerox Corporation. All rights reserved. */ /* begincopyright Copyright (c) 1988 Xerox Corporation. All rights reserved. Use and copying of this software and preparation of derivative works based upon this software are permitted. Any distribution of this software or derivative works must comply with all applicable United States export control laws. This software is made available AS IS, and Xerox Corporation makes no warranty about the software, its performance or its conformity to any specification. Any person obtaining a copy of this software is requested to send their name and post office or electronic mail address to: PCR Coordinator Xerox PARC 3333 Coyote Hill Rd. Palo Alto, CA endcopyright */ /* * XR_Basics.h * * Demers, July 14, 1992 */ #ifndef __XR_Basics_h #define __XR_Basics_h 1 /* NIL pointer */ #ifdef NIL # if NIL != 0 --> ERROR <-- # endif # undef NIL #endif #define NIL 0 /* Boolean values */ #undef bool #define bool long #ifdef FALSE # if FALSE != 0 --> ERROR <-- # endif # undef FALSE #endif #define FALSE 0 #ifdef TRUE # if TRUE != 1 --> ERROR <-- # endif #undef TRUE #endif #define TRUE 1 /* * poor substitute for void* */ typedef unsigned XR_Pointer; /* * Mesa procedure */ typedef XR_Pointer (*XR_UntypedProc)(/* ..., XR_MesaProc self */); typedef struct XR_MesaProcRep { XR_UntypedProc mp_proc; XR_Pointer mp_data; } * XR_MesaProc; #endif /* __XR_Basics_h */