aboutsummaryrefslogtreecommitdiff
path: root/include/stdbool.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove $FreeBSD$: two-line .h patternWarner Losh2023-08-161-2/+0
| | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-05-121-1/+1
| | | | | | | | | The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
* Remove obsolete check for GCC < 3 and support for Intel CompilerWarner Losh2020-10-241-3/+0
| | | | | | | | | | | | | | We no longer support old versions of GCC. Remove this check by assuming it's false. That will make the entire expression false. Also remove support for Intel compiler, it's badly bitrotted. Technically, this removes support for C89 and K&R from compilers that don't define _Bool in those compilation environments as well. I'm unaware of any working compiler today for which that would be relevant (pcc has it and tcc sadly isn't working for other reasons), though if one pops up in ports, I'll work to resolve the issue. Notes: svn path=/head/; revision=367028
* include: General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-251-0/+2
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using mis-identified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326192
* Remove unneeded guard.Ed Schouten2011-12-251-5/+0
| | | | | | | | There is no reason why <stdbool.h> needs an include guard. It is already protected by __bool_true_false_are_defined. Notes: svn path=/head/; revision=228878
* - Define true and false in sys/types.h for _KERNEL consumers, andMatthew D Fleming2011-12-121-0/+2
| | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=228444
* The Intel C/C++ compiler doesn't require a typedef for _Bool when compilingMarius Strobl2005-02-191-1/+1
| | | | | | | | | | | 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 Notes: svn path=/head/; revision=142088
* add a check for GNUC < 3 to typedef bool because gcc 3 always seems toAlfred Perlstein2002-08-161-1/+1
| | | | | | | | | define it. Suggested by: tjr Notes: svn path=/head/; revision=101969
* Guard definitions for use with C++ code.David E. O'Brien2002-06-191-0/+4
| | | | | | | Submitted by: Ed Hall <edhall@yahoo-inc.com> Notes: svn path=/head/; revision=98415
* Remove comment, which didn't even help anyway.Jeroen Ruigrok van der Werven2001-08-131-1/+0
| | | | | | | Submitted by: bde, long ago Notes: svn path=/head/; revision=81585
* Fix some nits:Jeroen Ruigrok van der Werven2001-02-061-8/+5
| | | | | | | | | | | - whitespace: incorrect usage of tab or space - removal of comments which served either no purpose or were misleading Submitted by: bde [a while ago] Notes: svn path=/head/; revision=72112
* Fix stdbool.h to actually work as advertised.Jeroen Ruigrok van der Werven2000-11-291-11/+3
| | | | | | | | | PR: 22936 Submitted by: Donald J. Maddox <Donald.J.Maddox@cae88-102-101.sc.rr.com> bde Notes: svn path=/head/; revision=69356
* Welcome stdbool.h. A header file from the ANSI C99 specification.Jeroen Ruigrok van der Werven2000-09-161-0/+54
It defines the boolean values. Notes: svn path=/head/; revision=65918