Page MenuHomeFreeBSD

D4384.id10753.diff
No OneTemporary

D4384.id10753.diff

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

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)

Event Timeline