Last change
on this file since 0170798 was 5fa506d, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Include file cleanup.
|
-
Property mode
set to
100644
|
File size:
996 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
|
---|
[5fa506d] | 10 |
|
---|
[f7428b1] | 11 | #include "stdint.h"
|
---|
[f40a309] | 12 |
|
---|
| 13 | /* relational operators */
|
---|
| 14 |
|
---|
| 15 | #define EQ ==
|
---|
| 16 | #define NE !=
|
---|
| 17 | #define GE >=
|
---|
| 18 | #define LE <=
|
---|
| 19 | #define GT >
|
---|
| 20 | #define LT <
|
---|
| 21 |
|
---|
| 22 | /* logical operators */
|
---|
| 23 |
|
---|
| 24 | #define NOT !
|
---|
| 25 | #define AND &&
|
---|
| 26 | #define OR ||
|
---|
| 27 |
|
---|
| 28 | /* |
---|
| 29 |
|
---|
| 30 | */
|
---|
| 31 |
|
---|
| 32 | /* manifest constants for function return and flag values */
|
---|
[f7428b1] | 33 |
|
---|
| 34 | #define FAILURE -1 /* Function failure return val */
|
---|
[f40a309] | 35 | #define SUCCESS 0 /* Function success return val */
|
---|
[f7428b1] | 36 |
|
---|
[f40a309] | 37 | #define FOREVER for (;;) /* Infinite loop declaration */
|
---|
[5fa506d] | 38 |
|
---|
[f40a309] | 39 | #define NULL ((void *)0) /* Null pointer value */
|
---|
[f7428b1] | 40 |
|
---|
| 41 | #define TRUE 1 /* Function TRUE value */
|
---|
[f40a309] | 42 | #define FALSE 0 /* Function FALSE value */
|
---|
| 43 |
|
---|
| 44 | /* BOOL type definition for flag variables */
|
---|
[7258c6a] | 45 |
|
---|
| 46 | typedef int8_t BOOL;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.