From owner-freebsd-arch Tue Oct 2 12: 2: 6 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 09BEF37B406 for ; Tue, 2 Oct 2001 12:02:04 -0700 (PDT) Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id MAA92558; Tue, 2 Oct 2001 12:45:23 -0700 (PDT) Date: Tue, 2 Oct 2001 12:45:23 -0700 (PDT) From: Julian Elischer To: Mark Murray Cc: arch@freebsd.org Subject: Re: [Patch] style.9 nit In-Reply-To: <200110011648.f91Gmgt25779@grimreaper.grondar.za> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 names are suggested for kernel code... On Mon, 1 Oct 2001, Mark Murray wrote: > Hi > > Any objections to this patch? > > It removes argument names from an example function prototype > to match a previously mentioned guideline about such names. > > eg: > > int foo(int bar); > > becomes > > int foo(int); > > This helps quite a bit in reducing namespace pollution. > > M > > Index: style.9 > =================================================================== > RCS file: /home/ncvs/src/share/man/man9/style.9,v > retrieving revision 1.66 > diff -u -d -r1.66 style.9 > --- style.9 1 Oct 2001 16:13:59 -0000 1.66 > +++ style.9 1 Oct 2001 16:39:38 -0000 > @@ -252,8 +252,7 @@ > Prototypes may have an extra space after a tab to enable function names > to line up: > .Bd -literal > -static char *function(int _arg, const char *_arg2, struct foo *_arg3, > - struct bar *_arg4); > +static char *function(int, const char *, struct foo *, struct bar *); > static void usage(void); > > /* > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-arch" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message