]> git.saurik.com Git - bison.git/commitdiff
(bool, false, true): Use a definition consistent with ../lib/hash.c.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 22 Oct 2002 04:40:09 +0000 (04:40 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 22 Oct 2002 04:40:09 +0000 (04:40 +0000)
src/system.h

index 002fa810ba70a22b2bfd8bd4606e7555a7e06e86..69f385cc479fb1c5a8f88eaf00af1e19f845e9da 100644 (file)
@@ -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;
 
 
 /*-----------.