Date: Thu, 18 Jan 2018 14:25:39 -0700 From: Warner Losh <imp@bsdimp.com> To: "freebsd-arch@freebsd.org" <freebsd-arch@freebsd.org> Subject: Style(9) clarification: c99 initializers Message-ID: <CANCZdfpz3NtN=4W4TzJAEE-Suje8Fm1d5Eqto5NiA==_fkU_uQ@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfpz3NtN=4W4TzJAEE-Suje8Fm1d5Eqto5NiA==_fkU_uQ>