[lkml]   [2006]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [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.

    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.

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2006-12-08 00:29    [W:0.022 / U:177.444 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site