Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Oct 2001 09:31:39 -0700
From:      Peter Wemm <peter@wemm.org>
To:        Dag-Erling Smorgrav <des@ofug.org>
Cc:        Julian Elischer <julian@elischer.org>, Jonathan Lemon <jlemon@flugsvamp.com>, John Baldwin <jhb@FreeBSD.ORG>, arch@FreeBSD.ORG, Warner Losh <imp@harmony.village.org>
Subject:   Re: Style Wars 
Message-ID:  <20011023163139.41177380A@overcee.netplex.com.au>
In-Reply-To: <xzpwv1m35rf.fsf@flood.ping.uio.no> 

next in thread | previous in thread | raw e-mail | index | archive | help
Dag-Erling Smorgrav wrote:
> Julian Elischer <julian@elischer.org> writes:
> >      When declaring variables in structures, declare them sorted by use, th
    en
> >      by size, and then by alphabetical order.  The first category normally
> >      doesn't apply, but there are exceptions.  Try to make the structure
> >      readable by aligning the variable names using either one or two tabs
> >      depending upon your judgement. Names following extremely long types
> >      should be separated by a simple space. i.e. use int^I^Ix; and
> >      struct foo^I*x; and struct verylongtypename *bar;
> 
> Yes, please!

Ditto.

Cheers,
-Peter
--
Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au
"All of this is for nothing if we don't go to the stars" - JMS/B5


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011023163139.41177380A>