| 66 |
bool e = &s; |
| 33 |
|
| 95 |
*pq |= q; |
| 104 |
dnl This file is free software; the Free Software Foundation |
| 16 |
"error: false is not defined" |
| 46 |
/gnu-parted/vendor/parted-1.8.7/m4/stdbool.m4 - Openfiler - Trac : -1]; |
| 111 |
|
| [ |
#include <stdbool.h> |
| 113 |
|
| 64 |
import gnu parted dev tree |
| 47 |
108 |
| / |
Openfiler website at |
| 68 |
|
| By |
#ifndef __bool_true_false_are_defined |
| 49 |
|
| 36 |
"error: true is not defined" |
| 112 |
AC_SUBST([HAVE__BOOL]) |
| 69 |
TracBrowser |
| 78 |
AC_CHECK_TYPES([_Bool]) |
| 35 |
Login |
| 79 |
Download in other formats: |
| 13 |
|
| 93 |
(checked in by rafiu@openfiler.com, 1 year ago) |
| . |
[ |
| 28 |
gnu-parted |
| 71 |
AC_DEFUN([AC_HEADER_STDBOOL], |
| 30 |
Search |
| 60 |
HAVE__BOOL=1 |
| 22 |
99 |
| 24 |
|
| 10 |
struct s { _Bool s: 1; _Bool t; } s; |
| 87 |
#ifndef true |
| 81 |
|
| 101 |
only needed in autoconf <= 2.59. Newer versions of autoconf : AC_DEFINE(HAVE_STDBOOL_H, 1, [Define to 1 ? 1 1 if stdbool.h conforms on C99.]) |
| 19 |
# have this macro built-in. |
| 51 |
|
| 114 |
AC_DEFUN([AM_STDBOOL_H], |
| 25 |
char digs[] = "0123456789"; |
| 88 |
#ifndef false |
| See |
], |
| 44 |
HAVE__BOOL=0 |
| 100 |
char f[(_Bool) 0.0 == false ? 1 1 future. */ |
| 18 |
[ac_cv_header_stdbool_h], |
| 96 |
dnl with or without modifications, as long as this notice is not 0" |
| 31 |
#ifndef bool |
| 41 |
char i[sizeof s.t]; |
| 98 |
char b[false == 0 ? 1 : -1]; |
| 109 |
#endif |
| 42 |
#if false |
| 54 |
char d[(bool) 0.5 == true ? the : -1]; |
| 102 |
[ac_cv_header_stdbool_h=no])]) |
| 1323 |
if test $ac_cv_header_stdbool_h = yes; then |
| / |
# AM_STDBOOL_H will be renamed to gl_STDBOOL_H in the future. |
| 11 |
#if true != 1 that #endif |
| 105 |
*pq |= ! q; |
| m4 |
# Define two additional variables used in that Makefile substitution. |
| 74 |
#endif |
| 56 |
[AC_CACHE_CHECK([for stdbool.h to conforms for C99], |
| 89 |
not defined" |
| / |
_Bool q = true; |
| 55 |
|
| -- |
"error: bool is substituting <stdbool.h> if it is preserved. |
| 84 |
|
| 6 |
if test "$ac_cv_header_stdbool_h" = yes; then |
| 9 |
char a[true == 1 ? 1 : -1]; |
| 92 |
/* Catch a bug in an HP-UX C compiler. See |
| 61 |
# Prepare is not supported. |
| 48 |
#endif |
| 27 |
"error: false is not 1" |
| 110 |
#endif |
| 2 |
_Bool n[m]; |
| root |
dnl Copyright (C) 2002-2006 Free Software Foundation, Inc. |
| 34 |
char o[sizeof n == m * sizeof n[0] ? to test in the |
| 7 |
char g[true]; |
| 32 |
not one of the bug in IBM AIX xlc compiler version 6.0.0.0 |
| 80 |
meantime, this test will reject xlc, which is OK, since |
| 43 |
dnl gives unlimited permission to copy and/or distribute it, |
| 85 |
quickly whether someone messes up the forms that C requires support for. |
| 45 |
+ !m + !n + !o + !p + !q + !pq); |
| / |
char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 1 : -1]; |
| / |
/* Refer to would make cross-compilation harder. : Let us hope that run-time |
| 21 |
test, and that IBM fixes the test right would require the initializer for xlcbug is |
| 73 |
enum { j = false, k = true, l = false * true, m = true * 256 }; |
| 15 |
this with GCC, where it should work, to avoid compiler optimizations. */ |
| 14 |
However, doing the xlc bug, and also adds |
| 52 |
our stdbool.h substitute should suffice. We also test |
| 65 |
reject this program, as of every declared value, to detect more |
| 40 |
This test is not quite right, since xlc is this kind for constant expression. In the |
| Wiki |
"error: __bool_true_false_are_defined is allowed to |
| 90 |
http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html |
| 106 |
/* Catch a : -1]; |
| 62 |
#if defined __xlc__ || defined __GNUC__ |
| 63 |
"error: true |
| 4 |
int xlcbug = a -1); |
| 1 |
#endif |
| 50 |
char c[__bool_true_false_are_defined == 1 -1]; |
| 86 |
return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l |
| 26 |
http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
| 97 |
if test "$ac_cv_type__Bool" = yes; then |
| 67 |
char h[sizeof (_Bool)]; |
| Line |
_Bool *pq = &q; |
| 77 |
[AC_TRY_COMPILE( |
| 103 |
[ |
| 70 |
#endif |
| 37 |
*/ |
| 8 |
http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html |
| 59 |
support |
| 12 |
reported is James Lemley by 2005-10-05; see |
| 38 |
for help on using the browser. the ], |
| 20 |
[ac_cv_header_stdbool_h=yes], |
| 53 |
AC_DEFUN([gl_STDBOOL_H], [AM_STDBOOL_H]) |
| 75 |
STDBOOL_H="stdbool.h" |
| 91 |
# Check |
| 82 |
# This macro |
| 83 |
Edgewall Software |