root/trunk/globdef.h

Revision 389, 0.9 kB (checked in by heitor.barbieri, 3 weeks ago)

essage first commit

Line 
1/* --------------------------------------------------------------- GLOBDEF.H */
2
3/* ---------------------------------------------------------- GLOBAL defines */
4#ifndef PC
5#define PC        1
6#endif /* PC */
7#if PC
8#ifndef ANSI
9#define ANSI      1
10#define ALLOC     farmalloc
11#define FREE      farfree
12#define ALLOPARM  unsigned long
13#define OPEN      _open
14#define READ      _read
15#define CLOSE     _close
16#define UBYTE     unsigned char
17#endif /* ANSI */
18#endif /* PC */
19#define UCHAR     unsigned char
20#define ENDFC(e)  { c = e; goto LABEL_ENDFC; }
21/* -------------------------------------------------------------------- enum */
22//#ifndef TRUE
23//#ifndef FALSE
24
25/*typedef enum {
26   FALSE,
27   TRUE
28} BOOLEAN;*/
29//#endif
30//#endif
31
32#ifndef BOOLEAN
33#define BOOLEAN int
34#endif
35#ifndef TRUE
36#define TRUE 1
37#endif
38#ifndef FALSE
39#define FALSE 0
40#endif
41#ifndef BOOLEAN
42typedef enum {
43   BOOLFALSE,
44   BOOLTRUE
45} XBOOLEAN;
46#endif
Note: See TracBrowser for help on using the browser.