diff options
author | Philip Guenthe <guenther@cvs.openbsd.org> | 2010-07-24 22:17:04 +0000 |
---|---|---|
committer | Philip Guenthe <guenther@cvs.openbsd.org> | 2010-07-24 22:17:04 +0000 |
commit | d386af15f2374fea2030e7fc82f11a7279ee7eaf (patch) | |
tree | 10f2fe3bdbbd7c197053707a07bee929f4fc25f7 /include/stdbool.h | |
parent | da29fa90fa9b7b830eb18a5eea3b01843f6a9590 (diff) |
Teach lint about C99's _Bool and _Complex, plus some related gcc
extensions: __real__ and __imag__ operators, the use of '~' for
complex conjugation, and 'i' or 'j' as a suffix for complex constants.
While this doesn't handle folding and overflow detection for complex
constants correctly, it's good enough to make it through libm...and
found several bugs once it could do so.
"no objections" miod@, krw@
Diffstat (limited to 'include/stdbool.h')
-rw-r--r-- | include/stdbool.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/stdbool.h b/include/stdbool.h index cc1104c6f85..34304130081 100644 --- a/include/stdbool.h +++ b/include/stdbool.h @@ -1,4 +1,4 @@ -/* $OpenBSD: stdbool.h,v 1.4 2007/10/02 14:06:16 otto Exp $ */ +/* $OpenBSD: stdbool.h,v 1.5 2010/07/24 22:17:03 guenther Exp $ */ /* * Written by Marc Espie, September 25, 1999 @@ -10,7 +10,7 @@ #ifndef __cplusplus -#if (defined(__GNUC__) && __GNUC__ >= 3) || defined(__PCC__) +#if (defined(__GNUC__) && __GNUC__ >= 3) || defined(__PCC__) || defined(lint) /* Support for _C99: type _Bool is already built-in. */ #define false 0 #define true 1 |