/* 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 */