From owner-freebsd-arch@freebsd.org Thu Jan 18 21:25:41 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 9B4C9EC41B2 for ; Thu, 18 Jan 2018 21:25:41 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) (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 2BC9181E4B for ; Thu, 18 Jan 2018 21:25:41 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-wm0-x241.google.com with SMTP id b141so24799170wme.1 for ; Thu, 18 Jan 2018 13:25:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:from:date:message-id:subject:to; bh=HKZugvXdDmEYitBxcpc45o8ygHa0FFSe63nxQVRXcis=; b=xpQbG4b1Oba8q9fcB2G5oJOfVI/Qe/1No565WO3c5j7ujJNqn+to7YZ3pwdp8WgqbO T8HZBeHffaY9N9S9axvtlzyac4pSiFNVyI1wyHMcl8FIeQN5arIQWkeUVAuCXQ2/QgRa L7c16bpLQQacTaqFcvnShX8H2unGMMtZmS+oNVSyXbFtMuEZaPUdorbv0RH1tnmrf9TX oRLsvElaZM9tH9B9O5tgXLAmwwmEc4gJZ+mfTrpJfDA5h+NnB1KoQZRKIffbBYq88k1q UbbyHhmjVShOhL7y0HmykdXDeZCRn78AAcK/Wz3/sVS0m+J1MH8PHOsuADxY/NF5jaw+ n8vQ== 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:from:date:message-id:subject :to; bh=HKZugvXdDmEYitBxcpc45o8ygHa0FFSe63nxQVRXcis=; b=kiZ7GSZ8JQHXiXiUAjfLgevygCcIzdR4iGstg2sK28IKDe4UYFnKA/19BAqBLm+o72 qPEpH3HI+eU8Z4grbs5gp+xvgFBajE3wXf7wMmiLoYbuRDoSQaz6j+Tm+6XEnfOfqZES 1YYkb0yldGv1wD0Joibil5zKL4tNdkvaZgIZxk5d6AG8jxqPahXCs6bmLujNFMyAkPuw oeetNaPZFDfJC6I5EimoapnmIsdUurHZOyIxsYnfg8xjlk/zV5ApqAUeduGeJIb0cIN5 xCxyglSqFrAxjJGFBmjmaeOKIHeaj7PCUJ8+qG+Exm5LB2/bWotongm/4dcMkMX2rsp2 7zuQ== X-Gm-Message-State: AKwxyte4IDDNLNe7V8i2vDW3mDISOquMzrYWGVDZWRUZc4pJUyrjcbqF eaEhKsU2i8COiGub5BGaEjKhMt3fC8VsCuKKjuW+jeue X-Google-Smtp-Source: ACJfBouoMGf/b2SotWy6B9pXRZ2AteaYlshryYrgJ8PlsWdfSYklQSLAD5N9IuVyEkMYBP9HuxkM0jRU4td3W+s8WDM= X-Received: by 10.80.186.161 with SMTP id x30mr9869822ede.138.1516310739405; Thu, 18 Jan 2018 13:25:39 -0800 (PST) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.80.195.12 with HTTP; Thu, 18 Jan 2018 13:25:39 -0800 (PST) X-Originating-IP: [50.253.99.174] From: Warner Losh Date: Thu, 18 Jan 2018 14:25:39 -0700 X-Google-Sender-Auth: 8ymnbcSn-JMizrhpy5UFYeF_-Bo Message-ID: Subject: 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:25:41 -0000 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