Add <stdbool.h> header.

Also, revise handling of boolean constants in <types.h> so that they do not conflict with the definitions in <stdbool.h>.
This commit is contained in:
Stephen Heumann 2021-01-25 22:04:26 -06:00
parent 52132db18a
commit acab97ae08
2 changed files with 25 additions and 2 deletions

15
ORCACDefs/stdbool.h Normal file
View File

@ -0,0 +1,15 @@
/****************************************************************
*
* stdbool.h - boolean type and values
*
****************************************************************/
#ifndef __stdbool__
#define __stdbool__
#define bool _Bool
#define true 1
#define false 0
#define __bool_true_false_are_defined 1
#endif

View File

@ -27,10 +27,18 @@
#define dispatcher 0xE10000L /* tool locator dispatch address */
#ifndef TRUE
#define TRUE 1
#define true TRUE
#endif
#ifndef true
#define true 1
#endif
#ifndef FALSE
#define FALSE 0
#define false FALSE
#endif
#ifndef false
#define false 0
#endif
/* RefDescriptors */
#define refIsPointer 0x0000