Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jan 1999 18:57:05 +1030
From:      Greg Lehey <grog@lemis.com>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        current@FreeBSD.ORG, peter.jeremy@auss2.alcatel.com.au
Subject:   Re: indent(1) and style(9) (was: btokup() macro in sys/malloc.h)
Message-ID:  <19990128185705.G8473@freebie.lemis.com>
In-Reply-To: <199901280819.TAA23954@godzilla.zeta.org.au>; from Bruce Evans on Thu, Jan 28, 1999 at 07:19:12PM %2B1100
References:  <199901280819.TAA23954@godzilla.zeta.org.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday, 28 January 1999 at 19:19:12 +1100, Bruce Evans wrote:
>>>> It would be nice if style(9) documented the options to give indent(1)
>>>> to match the `approved' layout convections.  (This would reduce the
>>>> effort involved in importing large chunks of code).
>>>
>>> This is impossible, since indent(1) is buggy and out of date with both
>>> KNF and C.
>>
>> Well, you can do a certain amount.  In fact, I use GNU indent and
>> achieve a reasonable approximation.
>
> I see no evidence of this.  vinum sources don't seem to have a single
> line in KNF, except accidentally.  They have an indentation of 4
> instead of 8, lots of per-statement comments, lots of lines longer
> than 80 characters, lots of block comments without `/*' and `*/' on
> a line by themself, ...

Well, I call that an approximation.  Sorry I have so many comments.
I'll fix the individual line /* and */; it wasn't evident from
style(9) that this was a requirement.

>> It would be nice to import it,
>> but it doesn't comply with style(9) :-)
>
> style(9) only applies to non-contrib'ed sources. e.g., vinum :-).

Don't spoil a good story by sticking too closely to the facts.

Greg
--
See complete headers for address, home page and phone numbers
finger grog@lemis.com for PGP public key

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



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