Messages in this thread | | | Date | Fri, 8 Dec 2006 00:23:44 +0100 (MET) | From | Jan Engelhardt <> | Subject | Re: [PATCH/RFC] CodingStyle updates |
| |
On Dec 7 2006 15:00, Randy Dunlap wrote: > >> > +but no space after unary operators: >> > + sizeof ++ -- & * + - ~ ! defined >> >> You could mention typeof too, which is a keyword but should be done like >> sizeof. > > Hm, is that a gcc-ism? It's not listed in the C99 spec. > > Are there other gcc-isms that I should add?
__attribute__(()) perhaps, which is often seen in kernel code.
-fno-gnu-keywords Do not recognize "typeof" as a keyword, so that code can use this word as an identifier. You can use the keyword "__typeof__" instead. -ansi implies -fno-gnu-keywords.
Ergo it's a GNUism/GCCism. As long as <whatever> is used in kernel code, it should be documented.
-`J' -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |