source: buchla-68k/orig/lib/INCLUDE/XPORT.H@ eee74cd

Last change on this file since eee74cd was 3ae31e9, checked in by Thomas Lopatic <thomas@…>, 7 years ago

Imported original source code.

  • Property mode set to 100755
File size: 2.5 KB
Line 
1/*
2 =============================================================================
3 xport.h -- a "portability" header package
4 Version 2 -- 1987-06-15 -- D.N. Lynx Crowe
5
6 This can generate a set of definitions compatible with portab.h if
7 ALCYON is defined.
8 =============================================================================
9*/
10
11/* only define one of the following symbols: ALCYON, LATTICE */
12
13#define ALCYON 1
14#define LATTICE 0
15
16/* ************ */
17
18#if ALCYON
19#define UCHARA 1
20#define m68k 0
21#define UCHARS 1 /* non-zero if char is unsigned */
22#define ULONGS 0 /* non-zero if unsigned longs exist */
23#define INT16 1 /* non-zero if int is 16 bits */
24#define VOIDS 0 /* non-zero if we have voids */
25#endif
26
27#if LATTICE
28#define UCHARS 0 /* non-zero if char is unsigned */
29#define ULONGS 1 /* non-zero if unsigned longs exist */
30#define INT16 0 /* non-zero if int is 16 bits */
31#define VOIDS 1 /* non-zero if we have voids */
32#endif
33
34#if VOIDS
35#define VOID void /* void function return */
36#else
37#define VOID int /* void function return */
38#endif
39
40#define BYTE char /* signed byte */
41#define BOOLEAN short /* 2 valued (true/false) */
42
43#if INT16
44#define WORD int /* signed word (16 bits) */
45#define UWORD unsigned int /* unsigned word */
46#else
47#define WORD short /* signed word (16 bits) */
48#define UWORD unsigned short /* unsigned word */
49#endif
50
51#define LONG long /* signed long (32 bits) */
52
53#if ULONGS
54#define ULONG unsigned long /* Unsigned long */
55#else
56#define ULONG long /* Unsigned long */
57#endif
58
59#if UCHARS
60#define UBYTE char /* Unsigned byte */
61#else
62#define UBYTE unsigned char /* Unsigned byte */
63#endif
64
65#define REG register /* register variable */
66#define LOCAL auto /* Local var on 68000 */
67#define EXTERN extern /* External variable */
68#define MLOCAL static /* Local to module */
69#define GLOBAL /**/ /* Global variable */
70#define DEFAULT int /* Default size */
71
72#define FAILURE (-1) /* Function failure return val */
73#define SUCCESS (0) /* Function success return val */
74
75#define YES 1 /* Function affirmative response */
76#define NO 0 /* Function negative response */
77
78#define FOREVER for(;;) /* Infinite loop declaration */
79
80#define NULL 0 /* Null pointer value */
81#define NULLPTR (char *) 0 /* Null character pointer */
82
83#define EOF (-1) /* EOF Value */
84
85#define TRUE (1) /* Function TRUE value */
86#define FALSE (0) /* Function FALSE value */
87
Note: See TracBrowser for help on using the repository browser.