From owner-cvs-all Tue Sep 4 12:32:14 2001 Delivered-To: cvs-all@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 8B07E37B401; Tue, 4 Sep 2001 12:32:07 -0700 (PDT) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id FAA32020; Wed, 5 Sep 2001 05:32:04 +1000 Date: Wed, 5 Sep 2001 05:31:42 +1000 (EST) From: Bruce Evans X-X-Sender: To: Ruslan Ermilov Cc: John Baldwin , "David E. O'Brien" , , Subject: Re: cvs commit: src/share/man/man9 style.9 In-Reply-To: <20010904195711.A16547@sunbay.com> Message-ID: <20010905052114.I18060-100000@alphplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 4 Sep 2001, Ruslan Ermilov wrote: > On Tue, Sep 04, 2001 at 09:51:52AM -0700, John Baldwin wrote: > > > > On 04-Sep-01 David E. O'Brien wrote: > > > obrien 2001/09/04 03:00:20 PDT > > > > > > Modified files: > > > share/man/man9 style.9 > > > Log: > > > Fix style bug from rev 1.20 in `struct foo' definition example to match the > > > `struct foo' definition example from rev 1.1. > > > > > > (proper CSRG style was also verified with /sys/sys/{bio,file}.h) > > > > Erm, according to bruce, the structfoo is the proper style. Also according to: style(9): Put a tab after the first word, i.e. use .Ql int^Ix; and .Ql struct^Ifoo *x; . > This rule only applies when inside the structure declaration. This is not clear (see the above rule). > > > You'll need to reformat a lot of files then. > > > Much less than in the opposite direction: > > # grep -r "^struct^I" /CURRENT/usr/include | wc -l > 514 > # grep -r "^struct " /CURRENT/usr/include | wc -l > 3034 I think you'll find that old code and system code follow the tab rule more. The counts in are: # grep -r "^struct^I" /CURRENT/usr/include/sys | wc -l 367 # grep -r "^struct " /CURRENT/usr/include/sys | wc -l 491 # grep -r "^struct^I" /4.4BSD-Lite2/usr/include/sys | wc -l 60 # grep -r "^struct " /4.4.BSD-Lite2/usr/include/sys | wc -l 325 Oops, so much for that theory (but about half of the "struct "'s in Lite2 are in the machine-generated syscallargs.h). Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message