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