Last change
on this file since f7428b1 was f7428b1, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Started to rework include files.
|
-
Property mode
set to
100644
|
File size:
986 bytes
|
Rev | Line | |
---|
[f40a309] | 1 | /*
|
---|
| 2 | ============================================================================
|
---|
| 3 | stddefs.h -- Standard definitions for C programs
|
---|
| 4 | Version 12 -- 1987-12-15 -- D.N. Lynx Crowe
|
---|
| 5 | Released to Public Domain - 1987-06 - D.N. Lynx Crowe
|
---|
| 6 | ============================================================================
|
---|
| 7 | */
|
---|
| 8 |
|
---|
[f7428b1] | 9 | #pragma once
|
---|
| 10 | #include "stdint.h"
|
---|
[f40a309] | 11 |
|
---|
| 12 | /* relational operators */
|
---|
| 13 |
|
---|
| 14 | #define EQ ==
|
---|
| 15 | #define NE !=
|
---|
| 16 | #define GE >=
|
---|
| 17 | #define LE <=
|
---|
| 18 | #define GT >
|
---|
| 19 | #define LT <
|
---|
| 20 |
|
---|
| 21 | /* logical operators */
|
---|
| 22 |
|
---|
| 23 | #define NOT !
|
---|
| 24 | #define AND &&
|
---|
| 25 | #define OR ||
|
---|
| 26 |
|
---|
| 27 | /* |
---|
| 28 |
|
---|
| 29 | */
|
---|
| 30 |
|
---|
| 31 | /* manifest constants for function return and flag values */
|
---|
[f7428b1] | 32 |
|
---|
| 33 | #define FAILURE -1 /* Function failure return val */
|
---|
[f40a309] | 34 | #define SUCCESS 0 /* Function success return val */
|
---|
[f7428b1] | 35 |
|
---|
[f40a309] | 36 | #define FOREVER for (;;) /* Infinite loop declaration */
|
---|
[f7428b1] | 37 |
|
---|
[f40a309] | 38 | #define NULL 0 /* Null pointer value */
|
---|
[f7428b1] | 39 |
|
---|
| 40 | #define TRUE 1 /* Function TRUE value */
|
---|
[f40a309] | 41 | #define FALSE 0 /* Function FALSE value */
|
---|
| 42 |
|
---|
| 43 | /* BOOL type definition for flag variables */
|
---|
[7258c6a] | 44 |
|
---|
| 45 | typedef int8_t BOOL;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.