From owner-freebsd-arch@freebsd.org Thu Jan 18 21:30:19 2018 Return-Path: Delivered-To: freebsd-arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1C63EEC44D1 for ; Thu, 18 Jan 2018 21:30:19 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-wm0-x232.google.com (mail-wm0-x232.google.com [IPv6:2a00:1450:400c:c09::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A38C382158 for ; Thu, 18 Jan 2018 21:30:18 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-wm0-x232.google.com with SMTP id t74so24811638wme.3 for ; Thu, 18 Jan 2018 13:30:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to; bh=X1pQIlShsdeo2yPBYGUcklub6RmOjqADqFu8fNuoinY=; b=jzTJLydmUhOysyeqZ8tpW23U3QpTOOJWyTYT5PwsTX459fH3YpqNnQnC3Ns7p7RBni 1flTGBhwbNJHPAMgeSiBcfBS3Bha5lg7DTnn+d34zHz7EcMAVDCPn1iAmjGEXtHZfUxL w2QZ2y598hTo8YXMlULfOGOoHalXyTw7+8jTmHpZgDqNhuRtFTst8osJ9dCuOAT5Vf5B P8zFZ98WvJBZLDEWTIXWoV7+xHm5HuKooBbiejXH/adWknu7qVeQsarWZHVyP+jp2f2Y 9lTcPP0uefcNnV8OPxN0HHCv/HYR9a4nZt7Z6Vz4+cbrBLZmR1AeiHjIPZgSW4qCMqQn MmOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=X1pQIlShsdeo2yPBYGUcklub6RmOjqADqFu8fNuoinY=; b=IyQYdXAcfTMHVgt3q2j4O+zG/IgRgmcOIqzB5g+qqQnzjpLWDei3Ws+j30OxFkfY9E lTcEXnJ5A86PCYlj23kIEHpknK8YzshM7adfATLd2jhSvAyelHU+1baZW8J70srMCQXU l9tN4T+2XVLclwrQ9VmvO8a8I8VLNjNf/xMhF8GzCHrZEtoxP7anR+nZs+LI5ZZeWSQI cqk6ZfU7LL9tpxdpxGgTdsLj1/H2r4otQCZKhXO6+BjU/uI6PDWgBAiVXGzX2O79nyKb 7QpC4V7rCBaJ+ip44bdvCT6vSlecjeKoyhqrLlW8KTjt12YCMf+rVMIjN7S0a9VhMoJn 5b6w== X-Gm-Message-State: AKwxytd0HheSbENzX9DwavMGSExjIhz9MfjjzcWYUY+xagw+QEM3AaUy 1dLwi7Dx3JEB8+pYrjBb9wka5KAZemeRozJEtps5WyXw X-Google-Smtp-Source: ACJfBovl2HlocYgyGK9kdwCdjn6j1hXdkZ7wmA53/yWYoRP7i9AbhiPPmuuhE0TD9KSuHERNH3VGjCDNv30hxfQBUO4= X-Received: by 10.80.190.9 with SMTP id a9mr9676103edi.258.1516311016883; Thu, 18 Jan 2018 13:30:16 -0800 (PST) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.80.195.12 with HTTP; Thu, 18 Jan 2018 13:30:16 -0800 (PST) X-Originating-IP: [50.253.99.174] In-Reply-To: References: From: Warner Losh Date: Thu, 18 Jan 2018 14:30:16 -0700 X-Google-Sender-Auth: AUW__bLP263N65KDNk3ucNYzRhQ Message-ID: Subject: Re: Style(9) clarification: c99 initializers To: "freebsd-arch@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jan 2018 21:30:19 -0000 I've opened https://reviews.freebsd.org/D13975 for this. Warner On Thu, Jan 18, 2018 at 2:25 PM, Warner Losh 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 >