mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-12-30 14:31:04 +00:00
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:
parent
52132db18a
commit
acab97ae08
15
ORCACDefs/stdbool.h
Normal file
15
ORCACDefs/stdbool.h
Normal 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
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user