[vorbis-dev] Whitespace standard?

Frank Klemm pfk at fuchs.offl.uni-jena.de
Sat Dec 30 04:29:16 PST 2000

On Sat, Dec 30, 2000 at 09:15:59AM +0100, Segher Boessenkool wrote:
> Brian Havard wrote:
> > 
> > I've noticed that throughout the code there's quite a variety of formatting
> > styles, especially the size of TAB characters (4 or 8) and size of indents
> > (2 or 4). Is there any agreed standard for new code now?
> As far as I can see, tab is 8 spaces, and indent is 2 spaces,
> throughout the Vorbis code.
Avoid tabulators (ASCII 0x09), because M$ started a mess with tab sizes.
It the past tab stops were at every 8th position, now you find it on every
value between 2 and 8, especially 3 and 4.

Ada normally stops compilation on a tab. Fatal error.
No problem if you configure your editor correctly.
In a world of Gigabyte hard disk this some byte should be no problem.

> > "for(packets=0;;packets++)if(pl[packets]==-1)break;"
> > Ew! :)
> That was my reaction at first, as well... But now I find myself not
> hitting the long one, unless really necessary, as well. Still don't
> think it's readable, though.
> But we can use gnu indent, to change between "Monty readable code" and
> "human readable code", of course |-)
I call this read protected code. It's more secure than CSS.

    for ( packets = 0; pl [packets] != -1; packets++ )
        /* nop */ ;

Frank Klemm

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.

More information about the Vorbis-dev mailing list