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

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

Removed form-feed comments.

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