[vorbis-dev] Whitespace standard?

Brian Havard brianh at kheldar.apana.org.au
Wed Jan 3 01:58:58 PST 2001

On 31 Dec 2000 17:32:10 -0600, Mike Coleman wrote:

>xiphmont at xiph.org (Monty) writes:
>> My 'style' is K&R standard except that I dislike spacing things out so
>> far that what could fit on one line takes up half the screen. I like
>> having as much functionality as possible visible together. I don't
>> intentionally obfuscate, it's just a religious distinction.

Does this mean you view your source in 4pt font too? You get lots of
functionality visible that way :)

>> Feel free to write new code in whatever way you like.  Don't reformat
>> existing code, please.
>I can survive, I guess, except for one thing.  The project really *needs* a
>standard for tab stops.  (I'm talking about "what does a tab char represent",
>as opposed to C indentation style.)  My preference would be mod 8, but mod 4
>or even 2 would be acceptible so long as it's uniform throughout the code.
>An example of this problem can be seen in encoder_example.c, lines 117-127.
>Most of the file is mod 8, but it looks like someone added these lines with a
>mod 4 setting.  The result is a file that can't be viewed correctly no matter
>how you set your tabs, as far as I can see.

Yep, this bugs me the most too and was the main reason I started this
thread, I just couldn't remember where I'd seen it.

My preference is to avoid using TAB characters altogether, that way there's
no possible ambiguity. If they must be used they should be mod 8.

 |  Brian Havard                 |  "He is not the messiah!                   |
 |  brianh at kheldar.apana.org.au  |  He's a very naughty boy!" - Life of Brian |

--- >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