[Midnightbsd-cvs] src [7444] trunk/share/man/man9/style.9: add section on bool types

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Fri Feb 5 10:16:31 EST 2016


Revision: 7444
          http://svnweb.midnightbsd.org/src/?rev=7444
Author:   laffer1
Date:     2016-02-05 10:15:30 -0500 (Fri, 05 Feb 2016)
Log Message:
-----------
add section on bool types

Modified Paths:
--------------
    trunk/share/man/man9/style.9

Modified: trunk/share/man/man9/style.9
===================================================================
--- trunk/share/man/man9/style.9	2016-02-03 05:39:21 UTC (rev 7443)
+++ trunk/share/man/man9/style.9	2016-02-05 15:15:30 UTC (rev 7444)
@@ -288,6 +288,30 @@
 .Vt uintXX_t
 only commits.
 .Pp
+Similarly, the project is slowly moving to use the
+.St -isoC-99
+.Vt bool
+in preference to the older
+.Vt int
+or
+.Vt boolean_t .
+New code should use
+.Vt bool ,
+and old code may be converted if it is
+reasonable to do so.
+Literal values are named
+.Dv true
+and
+.Dv false .
+These are preferred to the old spellings
+.Dv TRUE
+and
+.Dv FALSE .
+Userspace code should include
+.In stdbool.h ,
+while kernel code should include
+.In sys/types.h .
+.Pp
 Enumeration values are all uppercase.
 .Bd -literal
 enum enumtype { ONE, TWO } et;



More information about the Midnightbsd-cvs mailing list