On Sun, Mar 07, 2004 at 08:52:45PM +0100, Rene Herman wrote:David Weinehall wrote:
>>>In standard C we declare all variables at the top of a function. While
>>>some compilers allow extension, it is not a good idea to get used to
>>>them if we want portable code.
>>
>>Oh, come on. This is _kernel_ code, it won't ever be compiled with
>>anything
>>not GCC-compatible.
>
>Ugly warts don't become any less ugly just because gcc accepts them...
Mixing code and declarations is also c99. For (a sane) gcc specifically,
you have to tell it -std=c89 -pedantic to have it even complain.
Ok, didn't know that. Still doesn't make it any less ugly, though.
There are quite a lot of things that a valid in C. That doesn't mean
they should be used...