From 056ab1c6925dbf121bcdeb4cd5771c05ac6094f6 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 5 Feb 2007 00:22:55 +0000 Subject: [PATCH] * lib/stdbool_.h: Mention that bool bit-fields aren't supported. --- ChangeLog | 2 ++ lib/stdbool_.h | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0d78b986a4..5860a09548 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2007-02-04 Paul Eggert + * lib/stdbool_.h: Mention that bool bit-fields aren't supported. + * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC. 2007-02-04 Bruno Haible diff --git a/lib/stdbool_.h b/lib/stdbool_.h index efa80ba921..8525f0fe87 100644 --- a/lib/stdbool_.h +++ b/lib/stdbool_.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2001, 2002, 2003, 2006 Free Software Foundation, Inc. +/* Copyright (C) 2001, 2002, 2003, 2006, 2007 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software; you can redistribute it and/or modify @@ -41,6 +41,9 @@ - You cannot assume that _Bool is a typedef; it might be a macro. + - Bit-fields of type 'bool' are not supported. Portable code + should use 'unsigned int foo : 1;' rather than 'bool foo : 1;'. + - In C99, casts and automatic conversions to '_Bool' or 'bool' are performed in such a way that every nonzero value gets converted to 'true', and zero gets converted to 'false'. This doesn't work -- 2.30.2