Discussion:
Style(9) clarification: c99 initializers
Warner Losh
2018-01-18 21:25:39 UTC
Permalink
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
Warner Losh
2018-01-18 21:30:16 UTC
Permalink
I've opened https://reviews.freebsd.org/D13975 for this.

Warner
Post by Warner Losh
I'd like to make the following change to style(9) to codify the current
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
Loading...