From owner-freebsd-arch Sun Sep 30 12: 1:27 2001 Delivered-To: freebsd-arch@freebsd.org Received: from InterJet.elischer.org (c421509-a.pinol1.sfba.home.com [24.7.86.9]) by hub.freebsd.org (Postfix) with ESMTP id D9FFA37B405; Sun, 30 Sep 2001 12:01:21 -0700 (PDT) Received: from elischer.org (InterJet.elischer.org [192.168.1.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id MAA81441; Sun, 30 Sep 2001 12:46:34 -0700 (PDT) Message-ID: <3BB768B6.15C8CE36@elischer.org> Date: Sun, 30 Sep 2001 11:47:18 -0700 From: Julian Elischer X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en, hu MIME-Version: 1.0 To: Bruce Evans Cc: John Baldwin , Peter Wemm , arch@FreeBSD.ORG, Warner Losh Subject: Re: Style Wars References: <20010930175137.T70218-100000@delplex.bde.org> Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Bruce Evans wrote: > > On Fri, 28 Sep 2001, John Baldwin wrote: > > > I'm think 1b) is the one most people have favored so far and it is rather close > > to our existing style, so it's not that big of a change. Does anyone object to > > 1b)? It basically results in the following changes: use 2 tab spaces instead > > of 1 for type names, put the entire type name before the tab(s), and if the > > type is too long, just use a space. > > > > > 1b) > > > > > > struct foo { > > > int f_type; > > > struct mtx f_lock; > > > const char *f_name; > > > volatile int f_int; > > > u_int64_t f_64; > > > const volatile char f_cv; > > > TAILQ_ENTRY(foo) f_link; > > > }; > > Yes, this is essentially just the current style with encouragement for > more verboseness. It's interesting that indent(1) defaults to the > too-large indent of 16 (-di16). I wouldn't want to go back to that > :-). I prefer to use 1 space after the typename, but for FreeBSD I > don't mind using 1 tab after short typenames. parse error 42.. example required... > > Bruce > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-arch" in the body of the message -- +------------------------------------+ ______ _ __ | __--_|\ Julian Elischer | \ U \/ / hard at work in | / \ julian@elischer.org +------>x USA \ a very strange | ( OZ ) \___ ___ | country ! +- X_.---._/ presently in San Francisco \_/ \\ v To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message