source: buchla-68k/orig/lib/INCLUDE/PORTAB.H@ 0170798

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

Imported original source code.

  • Property mode set to 100755
File size: 2.0 KB
Line 
1/*
2 =============================================================================
3 portab.h -- Pointless redefinitions of C syntax.
4 Version 1 -- 1985-01-01 -- Atari
5 Copyright 1985 Atari Corp.
6
7 WARNING: Use of this file may make your code incompatible with
8 C compilers throughout the civilized world.
9 =============================================================================
10*/
11
12#define mc68k 0
13
14#define UCHARA 1 /* if char is unsigned */
15
16/*
17 * Standard type definitions
18 */
19
20#define BYTE char /* Signed byte */
21#define BOOLEAN int /* 2 valued (true/false) */
22#define WORD int /* Signed word (16 bits) */
23#define UWORD unsigned int /* unsigned word */
24
25#define LONG long /* signed long (32 bits) */
26#define ULONG long /* Unsigned long */
27
28#define REG register /* register variable */
29#define LOCAL auto /* Local var on 68000 */
30#define EXTERN extern /* External variable */
31#define MLOCAL static /* Local to module */
32#define GLOBAL /**/ /* Global variable */
33#define VOID /**/ /* Void function return */
34#define DEFAULT int /* Default size */
35
36#ifdef UCHARA
37#define UBYTE char /* Unsigned byte */
38#else
39#define UBYTE unsigned char /* Unsigned byte */
40#endif
41
42/****************************************************************************/
43/* Miscellaneous Definitions: */
44/****************************************************************************/
45
46#define FAILURE (-1) /* Function failure return val */
47#define SUCCESS (0) /* Function success return val */
48#define YES 1 /* "TRUE" */
49#define NO 0 /* "FALSE" */
50#define FOREVER for(;;) /* Infinite loop declaration */
51#define NULL 0 /* Null pointer value */
52#define NULLPTR (char *) 0 /* */
53#define EOF (-1) /* EOF Value */
54#define TRUE (1) /* Function TRUE value */
55#define FALSE (0) /* Function FALSE value */
56
Note: See TracBrowser for help on using the repository browser.