Style(9) clarification: c99 initializers

Warner Losh imp at bsdimp.com
Thu Jan 18 21:30:19 UTC 2018


I've opened https://reviews.freebsd.org/D13975 for this.

Warner

On Thu, Jan 18, 2018 at 2:25 PM, Warner Losh <imp at bsdimp.com> wrote:

> 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