LWN.net Logo

Sobotka: Why GIMP is inadequate

Sobotka: Why GIMP is inadequate

Posted Jan 13, 2011 12:16 UTC (Thu) by error27 (subscriber, #8346)
In reply to: Sobotka: Why GIMP is inadequate by daniel
Parent article: Sobotka: Why GIMP is inadequate

C99 is also banned from Linus's kernel, nuff said.

Kernel style is one variable declaration per line. The declarations are separated from the code by a blank line. C99 allows people to mix code and variable declarations, but in the kernel it's considered horribly bad style.

The kernel style is to use kernel-doc comments and so C99 comments are considered non-standard and thus wrong.

On the other hand, the kernel has pretty much all been updated to use C99 style structure initialization and it uses __func__ instead of using the old GCC extensions. And the kernel often takes advantage of the latest features in GCC where possible. For example, v2.6.37 uses the new local label declarations.

When you say that we've banned C99 code that makes it sound like we're retarded. There are tons of things that we hate but only because they are ugly and not because they are new.


(Log in to post comments)

Sobotka: Why GIMP is inadequate

Posted Jan 13, 2011 20:34 UTC (Thu) by daniel (subscriber, #3181) [Link]

"When you say that we've banned C99 code that makes it sound like we're retarded."

It does sound like that, doesn't it?

Sobotka: Why GIMP is inadequate

Posted Jan 14, 2011 7:36 UTC (Fri) by bronson (subscriber, #4806) [Link]

Yep. So why don't you apologize? Your statement was clearly wrong.

Sobotka: Why GIMP is inadequate

Posted Jan 18, 2011 18:45 UTC (Tue) by daniel (subscriber, #3181) [Link]

"So why don't you apologize?"

I will when the ban on inline declarations and // comments ends.

Sobotka: Why GIMP is inadequate

Posted Jan 19, 2011 16:56 UTC (Wed) by bronson (subscriber, #4806) [Link]

haha, fair enough.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds