source: buchla-68k/orig/GP/STDDEFS.H@ 4b63bf3

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

Imported original source code.

  • Property mode set to 100755
File size: 1.5 KB
Line 
1/*
2 ============================================================================
3 stddefs.h -- Standard definitions for C programs
4 Version 12 -- 1987-12-15 -- D.N. Lynx Crowe
5
6 Must follow stdio.h if stdio.h is used as both define:
7
8 NULL, EOF.
9
10 Must follow define.h on the Atari if define.h is used as both define:
11
12 NULL, EOF, FOREVER, TRUE, FALSE, FAILURE, SUCCESS,
13 YES, NO, EOS, NIL.
14
15 Released to Public Domain - 1987-06 - D.N. Lynx Crowe
16 ============================================================================
17*/
18
19#ifndef STD_DEFS /* so we only define these once */
20
21#define STD_DEFS 1
22
23/* relational operators */
24
25#define EQ ==
26#define NE !=
27#define GE >=
28#define LE <=
29#define GT >
30#define LT <
31
32/* logical operators */
33
34#define NOT !
35#define AND &&
36#define OR ||
37
38/* infinite loop constructs */
39
40#ifndef FOREVER
41#define FOREVER for(;;)
42#endif
43
44#ifndef REPEAT
45#define REPEAT for(;;)
46#endif
47
48/*
49
50*/
51
52/* various terminators */
53
54#ifndef EOF
55#define EOF (-1)
56#endif
57
58#ifndef EOS
59#define EOS '\0'
60#endif
61
62#ifndef NIL
63#define NIL 0
64#endif
65
66/* manifest constants for function return and flag values */
67
68#ifndef NULL
69#define NULL 0
70#endif
71
72#ifndef YES
73#define YES 1
74#endif
75
76#ifndef NO
77#define NO 0
78#endif
79
80#ifndef FALSE
81#define FALSE 0
82#endif
83
84#ifndef TRUE
85#define TRUE 1
86#endif
87
88#ifndef SUCCESS
89#define SUCCESS 0
90#endif
91
92#ifndef FAILURE
93#define FAILURE (-1)
94#endif
95
96/* BOOL type definition for flag variables */
97
98typedef char BOOL;
99
100#endif
Note: See TracBrowser for help on using the repository browser.