projects
/
platform
/
upstream
/
bison.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3714bc
)
(bool, false, true): Use a definition consistent with ../lib/hash.c.
author
Paul Eggert
<eggert@cs.ucla.edu>
Tue, 22 Oct 2002 04:40:09 +0000
(
04:40
+0000)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Tue, 22 Oct 2002 04:40:09 +0000
(
04:40
+0000)
src/system.h
patch
|
blob
|
history
diff --git
a/src/system.h
b/src/system.h
index
002fa81
..
69f385c
100644
(file)
--- a/
src/system.h
+++ b/
src/system.h
@@
-181,11
+181,11
@@
void *memrchr (const void *s, int c, size_t n);
| Booleans. |
`-----------*/
-#ifndef TRUE
-# define TRUE (1)
-# define FALSE (0)
+#if HAVE_STDBOOL_H
+# include <stdbool.h>
+#else
+typedef enum {false = 0, true = 1} bool;
#endif
-typedef int bool;
/*-----------.