History log of /freebsd-10.0-release/include/stdbool.h
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 259065 07-Dec-2013 gjb

- Copy stable/10 (r259064) to releng/10.0 as part of the
10.0-RELEASE cycle.
- Update __FreeBSD_version [1]
- Set branch name to -RC1

[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so
start releng/10.0 at '100' so the branch is started with
a value ending in zero.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 228878 25-Dec-2011 ed

Remove unneeded guard.

There is no reason why <stdbool.h> needs an include guard. It is already
protected by __bool_true_false_are_defined.


# 228444 12-Dec-2011 mdf

- Define true and false in sys/types.h for _KERNEL consumers, and
typedef bool. Due to macro expansion it seemed better to use a
typedef for kernel consumers (specifically ofed won't compile
without more changes if a define is used).
- <stdbool.h> should also not re-define bool/true/false if they are
defined by <sys/types.h>. It would probably be a programming error
to define _KERNEL for user-space code, but downstream consumers
like Isilon have already been including <stdbool.h> in kernel
sources, and this protects that usage.
- sizeof(_Bool) is not necessarily the same as sizeof(int), so kernel
modules should be rebuild with this change. Bump __FreeBSD_version.

MFC after: 2 weeks
Sponsored by: Isilon Systems, LLC


# 142088 19-Feb-2005 marius

The Intel C/C++ compiler doesn't require a typedef for _Bool when compiling
C source so don't declare one when using the GCC-compatibility (defaulting
to GCC 2.95.0) of ICC.

Submitted by: netchild
MFC after: 1 week


# 101969 16-Aug-2002 alfred

add a check for GNUC < 3 to typedef bool because gcc 3 always seems to
define it.

Suggested by: tjr


# 98415 19-Jun-2002 obrien

Guard definitions for use with C++ code.

Submitted by: Ed Hall <edhall@yahoo-inc.com>


# 81585 13-Aug-2001 asmodai

Remove comment, which didn't even help anyway.

Submitted by: bde, long ago


# 72112 06-Feb-2001 asmodai

Fix some nits:

- whitespace: incorrect usage of tab or space
- removal of comments which served either no purpose or were
misleading

Submitted by: bde [a while ago]


# 69356 29-Nov-2000 asmodai

Fix stdbool.h to actually work as advertised.

PR: 22936
Submitted by: Donald J. Maddox <Donald.J.Maddox@cae88-102-101.sc.rr.com>
bde


# 65918 16-Sep-2000 asmodai

Welcome stdbool.h. A header file from the ANSI C99 specification.
It defines the boolean values.