Changeset f7428b1 in buchla-68k for include/stddefs.h
- Timestamp:
- 07/10/2017 01:26:59 AM (7 years ago)
- Branches:
- master
- Children:
- 5fa506d
- Parents:
- c3aee8a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
include/stddefs.h
rc3aee8a rf7428b1 3 3 stddefs.h -- Standard definitions for C programs 4 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 5 Released to Public Domain - 1987-06 - D.N. Lynx Crowe 16 6 ============================================================================ 17 7 */ 18 8 19 #ifndef STD_DEFS /* so we only define these once */ 20 21 #define STD_DEFS 1 9 #pragma once 10 #include "stdint.h" 22 11 23 12 /* relational operators */ … … 36 25 #define OR || 37 26 38 /* infinite loop constructs */39 40 #ifndef FOREVER41 #define FOREVER for(;;)42 #endif43 44 #ifndef REPEAT45 #define REPEAT for(;;)46 #endif47 48 27 /* 49 28 50 29 */ 51 30 52 /* various terminators */53 54 #ifndef EOF55 #define EOF (-1)56 #endif57 58 #ifndef EOS59 #define EOS '\0'60 #endif61 62 #ifndef NIL63 #define NIL 064 #endif65 66 31 /* manifest constants for function return and flag values */ 67 32 68 #ifndef NULL 69 #define NULL 0 70 #endif 33 #define FAILURE -1 /* Function failure return val */ 34 #define SUCCESS 0 /* Function success return val */ 71 35 72 #ifndef YES 73 #define YES 1 74 #endif 36 #define FOREVER for (;;) /* Infinite loop declaration */ 75 37 76 #ifndef NO 77 #define NO 0 78 #endif 38 #define NULL 0 /* Null pointer value */ 79 39 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 40 #define TRUE 1 /* Function TRUE value */ 41 #define FALSE 0 /* Function FALSE value */ 95 42 96 43 /* BOOL type definition for flag variables */ 97 44 98 45 typedef int8_t BOOL; 99 100 #endif
Note:
See TracChangeset
for help on using the changeset viewer.