To K&R or not
ead1234 at hotmail.com
Sun Jun 4 02:12:15 CDT 2006
One could just write a perl script to parse the code upon submission that
would convert it from K & R style to a uniform standard that it easy to
read, and fix things like the amount of spaces in an indent.
>From: Peter Beutner <p.beutner at gmx.net>
>To: James Hawkins <truiken at gmail.com>
>CC: Stephen.Clark at seclark.us, Aneurin Price
><wine at shadovald.dyndns.org>,wine-devel at winehq.org
>Subject: Re: To K&R or not
>Date: Sun, 04 Jun 2006 01:49:55 +0200
>James Hawkins schrieb:
>>On 6/3/06, Stephen Clark <Stephen.Clark at seclark.us> wrote:
>>> >"Tabs are not forbidden but discouraged. A tab is defined as 8
>>> >characters and the usual amount of indentation is 4 characters."
>>>A tab is not defined as 8 spaces - it is defined as go to the next TAB
>>>STOP! The tab stop
>>>could be every 8 spaces or 4 spaces or 2 spaces or whatever has been
>>>defined. The tab
>>>comes from the manual typewriter and there were physical stops you
>>>you wanted the carriage to stop at.
>>You misinterpreted the quote. "A tab is defined as 8 characters"
>>means that when you're editing Wine code that has tabs in it, you
>>should set your editor to display tabs as 8 spaces so that we all see
>>the same indention from a tab.
>hm but isn't it rather insane to require specific editor settings just to
>able to *view* the code?
More information about the wine-devel