Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Jan 2018 14:30:16 -0700
From:      Warner Losh <imp@bsdimp.com>
To:        "freebsd-arch@freebsd.org" <freebsd-arch@freebsd.org>
Subject:   Re: Style(9) clarification: c99 initializers
Message-ID:  <CANCZdfpB80iTiRGbibaZtM2UZ88_kg7uL_ir6UuLshOgAr-WEQ@mail.gmail.com>
In-Reply-To: <CANCZdfpz3NtN=4W4TzJAEE-Suje8Fm1d5Eqto5NiA==_fkU_uQ@mail.gmail.com>
References:  <CANCZdfpz3NtN=4W4TzJAEE-Suje8Fm1d5Eqto5NiA==_fkU_uQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
I've opened https://reviews.freebsd.org/D13975 for this.

Warner

On Thu, Jan 18, 2018 at 2:25 PM, Warner Losh <imp@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
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfpB80iTiRGbibaZtM2UZ88_kg7uL_ir6UuLshOgAr-WEQ>