On 01/25/2011 06:19 PM, Dieter Spaar wrote:
Hello Holger,
Hi Dieter,
On Tue, 25 Jan 2011 16:51:02 +0100, "Holger Hans Peter Freyther" holger@freyther.de wrote:
Almost perfect. I can apply and modify myself or you could do two things. We tend to avoid the '//' comments, they were only added in C99 and used to be a GCC extension for C.
This is a good one ;-)
hehe.
Just out of interest, do we really want to to avoid C99 ? I know there is this implicit "kernel style" coding rule, does it include C99 ?
seems to be just kernel style and not really related to C99.
Documentation/CodingStyle Linux style for comments is the C89 "/* ... */" style. Don't use C99-style "// ..." comments.
I am just interested in the reasons for using C99 or not.
That is a good question. The only practical thing would be C/C++ interworking as C++ still assumes a C89 environment, another one is that GCC still does not default to C99.