|
Last change
on this file since f7428b1 was f7428b1, checked in by Thomas Lopatic <thomas@…>, 8 years ago |
|
Started to rework include files.
|
-
Property mode
set to
100644
|
|
File size:
986 bytes
|
| Line | |
|---|
| 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 |
|
|---|
| 9 | #pragma once
|
|---|
| 10 | #include "stdint.h"
|
|---|
| 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 */
|
|---|
| 32 |
|
|---|
| 33 | #define FAILURE -1 /* Function failure return val */
|
|---|
| 34 | #define SUCCESS 0 /* Function success return val */
|
|---|
| 35 |
|
|---|
| 36 | #define FOREVER for (;;) /* Infinite loop declaration */
|
|---|
| 37 |
|
|---|
| 38 | #define NULL 0 /* Null pointer value */
|
|---|
| 39 |
|
|---|
| 40 | #define TRUE 1 /* Function TRUE value */
|
|---|
| 41 | #define FALSE 0 /* Function FALSE value */
|
|---|
| 42 |
|
|---|
| 43 | /* BOOL type definition for flag variables */
|
|---|
| 44 |
|
|---|
| 45 | typedef int8_t BOOL;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.