source: buchla-68k/include/stddefs.h@ cdb0f36

Last change on this file since cdb0f36 was fa38804, checked in by Thomas Lopatic <thomas@…>, 7 years ago

Removed form-feed comments.

  • Property mode set to 100644
File size: 987 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/* manifest constants for function return and flag values */
29
30#define FAILURE -1 /* Function failure return val */
31#define SUCCESS 0 /* Function success return val */
32
33#define FOREVER for (;;) /* Infinite loop declaration */
34
35#define NULL ((void *)0) /* Null pointer value */
36
37#define TRUE 1 /* Function TRUE value */
38#define FALSE 0 /* Function FALSE value */
39
40/* BOOL type definition for flag variables */
41
42typedef int8_t BOOL;
Note: See TracBrowser for help on using the repository browser.