Style(9) clarification: c99 initializers

Warner Losh imp at bsdimp.com
Thu Jan 18 21:25:41 UTC 2018


I'd like to make the following change to style(9) to codify the current
momentum towards using c99 designated initializers where it makes sense:

diff --git a/share/man/man9/style.9 b/share/man/man9/style.9
index f008a7d613e..75dba71830f 100644
--- a/share/man/man9/style.9
+++ b/share/man/man9/style.9
@@ -324,6 +324,10 @@ Userspace code should include
 while kernel code should include
 .In sys/types.h .
 .Pp
+Likewise, the project is moving to using the
+.St -isoC-99
+designated initializers when it makes sense to do so.
+.Pp
 Enumeration values are all uppercase.
 .Bd -literal
 enum enumtype { ONE, TWO } et;

Comments?

Warner


More information about the freebsd-arch mailing list