mirror of
https://github.com/SEPPDROID/Digital-Research-Source-Code.git
synced 2025-10-25 17:34:06 +00:00
Upload
Digital Research
This commit is contained in:
@@ -0,0 +1,70 @@
|
||||
1File: BDOSINC.H Page 1
|
||||
1 /*****************************************************************************
|
||||
2 *
|
||||
3 * C P / M C H E A D E R F I L E
|
||||
4 * -----------------------------------
|
||||
5 * Copyright 1982 by Digital Research Inc. All rights reserved.
|
||||
6 *
|
||||
7 * This is an include file for assisting the user to write portable
|
||||
8 * programs for C.
|
||||
9 *
|
||||
10 *****************************************************************************/
|
||||
11 #define ALCYON 1 /* using Alcyon compiler */
|
||||
12 /*
|
||||
13 * Standard type definitions
|
||||
14 */
|
||||
15 /***************************/
|
||||
16 #define BYTE char /* Signed byte */
|
||||
17 #define BOOLEAN char /* 2 valued (true/false) */
|
||||
18 #define WORD short /* Signed word (16 bits) */
|
||||
19 #define UWORD unsigned int /* unsigned word */
|
||||
20 #define LONG long /* signed long (32 bits) */
|
||||
21 #define ULONG unsigned long /* Unsigned long */
|
||||
22 #define REG register /* register variable */
|
||||
23 #define LOCAL auto /* Local var on 68000 */
|
||||
24 #define EXTERN extern /* External variable */
|
||||
25 #define MLOCAL static /* Local to module */
|
||||
26 #define GLOBAL /**/ /* Global variable */
|
||||
27 #define VOID /**/ /* Void function return */
|
||||
28 /***************************/
|
||||
29 #ifdef ALCYON
|
||||
30 #define UBYTE char
|
||||
31 #define UBWORD(a) ((UWORD)a & 0xff)
|
||||
32 /* Unsigned byte to word cast */
|
||||
33 #else
|
||||
34 #define UBYTE unsigned char /* Unsigned byte */
|
||||
35 #define UBWORD(a) (UWORD)a
|
||||
36 #endif
|
||||
37
|
||||
38
|
||||
39
|
||||
40 /****************************************************************************/
|
||||
41 /* Miscellaneous Definitions: */
|
||||
42 /****************************************************************************/
|
||||
43 #define FAILURE (-1) /* Function failure return val */
|
||||
44 #define SUCCESS (0) /* Function success return val */
|
||||
45 #define YES 1 /* "TRUE" */
|
||||
46 #define NO 0 /* "FALSE" */
|
||||
47 #define FOREVER for(;;) /* Infinite loop declaration */
|
||||
48 #define NULL (BYTE *)0 /* Null pointer value */
|
||||
49 #define EOF (-1) /* EOF Value */
|
||||
50 #define TRUE (1) /* Function TRUE value */
|
||||
51 #define FALSE (0) /* Function FALSE value */
|
||||
52
|
||||
53
|
||||
54 /****************************************************************************/
|
||||
55 /* */
|
||||
56 /* M A C R O S */
|
||||
57 /* ----------- */
|
||||
58 /* */
|
||||
59 /* Define some stuff as macros .... */
|
||||
1File: BDOSINC.H Page 2
|
||||
60 /* */
|
||||
61 /****************************************************************************/
|
||||
62
|
||||
63 #define abs(x) ((x) < 0 ? -(x) : (x)) /* Absolute value function */
|
||||
64
|
||||
65 #define max(x,y) (((x) > (y)) ? (x) : (y)) /* Max function */
|
||||
66 #define min(x,y) (((x) < (y)) ? (x) : (y)) /* Min function */
|
||||
67
|
||||
68 /*************************** end of stdio.h *********************************/
|
||||
Reference in New Issue
Block a user