Readable code (Was: Re: [H-GEN] Which is better?)
Greg Black
gjb at gbch.net
Thu Apr 29 00:00:19 EDT 2004
On 2004-04-28, barry day wrote:
> check out a program called indent. It's very handy for adding and removing
> whitespace to code.
Speaking of indent, does anybody know of an incantation to
either BSD or GNU indent to do K&R style but to leave the
following as is, rather than moving the lone semi-colon up to
the "for" line:
for (p = buf; isspace(*p); ++p)
;
K&R style would leave it as is, but both versions of indent seem
to want to move it.
Cheers, Greg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 249 bytes
Desc: not available
URL: <http://lists.humbug.org.au/pipermail/general/attachments/20040429/1ae013b4/attachment.sig>
More information about the General
mailing list