Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F140078168
D4384.id10753.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
906 B
Referenced Files
None
Subscribers
None
D4384.id10753.diff
View Options
Index: share/man/man9/style.9
===================================================================
--- share/man/man9/style.9
+++ share/man/man9/style.9
@@ -26,7 +26,7 @@
.\" From: @(#)style 1.14 (Berkeley) 4/28/95
.\" $FreeBSD$
.\"
-.Dd November 22, 2015
+.Dd December 4, 2015
.Dt STYLE 9
.Os
.Sh NAME
@@ -288,6 +288,28 @@
.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 the former, 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;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 20, 10:55 PM (21 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27102156
Default Alt Text
D4384.id10753.diff (906 B)
Attached To
Mode
D4384: style.9: Add a small blurb about preferring bool to older types
Attached
Detach File
Event Timeline
Log In to Comment