autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bison uses two different 'bool' flavors


From: Akim Demaille
Subject: Re: Bison uses two different 'bool' flavors
Date: 23 Oct 2002 09:41:40 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Honest Recruiter)

| Index: doc/autoconf.texi
| ===================================================================
| RCS file: /cvsroot/autoconf/autoconf/doc/autoconf.texi,v
| retrieving revision 1.692
| diff -u -u -r1.692 autoconf.texi
| --- doc/autoconf.texi 22 Oct 2002 12:34:21 -0000 1.692
| +++ doc/autoconf.texi 23 Oct 2002 07:26:05 -0000
| @@ -4285,14 +4285,24 @@
|  @acindex HEADER_STDBOOL
|  @cvindex HAVE_STDBOOL_H
|  If @file{stdbool.h} exists and is conformant to C99, define
| address@hidden to 1.  Your @file{system.h} should contain the
| -following code:
| address@hidden to 1.  To fulfill the C99 requirements, your
| address@hidden should contain the following code:
|  
|  @verbatim
|  #if HAVE_STDBOOL_H
|  # include <stdbool.h>
|  #else
| -typedef enum {false = 0, true = 1} bool;
| +# if ! HAVE__BOOL
| +#  ifdef __cplusplus
| +typedef bool _Bool;
| +#  else
| +typedef unsigned char _Bool;
| +#  endif
| +# endif
| +# define bool _Bool
| +# define false 0
| +# define true 1
| +# define __bool_true_false_are_defined 1
|  #endif
|  @end verbatim
|  @end defmac

Addendum:

Index: ChangeLog
from  Akim Demaille  <address@hidden>
        * doc/autoconf.texi (Particular Headers): In AC_HEADER_STDBOOL,
        document _Bool.

2002-10-23  Akim Demaille  <address@hidden>

Index: doc/autoconf.texi
===================================================================
RCS file: /cvsroot/autoconf/autoconf/doc/autoconf.texi,v
retrieving revision 1.693
diff -u -u -r1.693 autoconf.texi
--- doc/autoconf.texi 23 Oct 2002 07:27:04 -0000 1.693
+++ doc/autoconf.texi 23 Oct 2002 07:41:11 -0000
@@ -4284,8 +4284,10 @@
 @defmac AC_HEADER_STDBOOL
 @acindex HEADER_STDBOOL
 @cvindex HAVE_STDBOOL_H
address@hidden HAVE__BOOL
 If @file{stdbool.h} exists and is conformant to C99, define
address@hidden to 1.  To fulfill the C99 requirements, your
address@hidden to 1; if the type @code{_Bool} is defined, define
address@hidden to 1.  To fulfill the C99 requirements, your
 @file{system.h} should contain the following code:
 
 @verbatim




reply via email to

[Prev in Thread] Current Thread [Next in Thread]