[lkml]   [2000]   [Jan]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] 2.3.41 - cleanup file_operations structs
    David Wragg wrote:
    > Adopting gcc-style initializers might seem reasonable now, but
    > it could be a pain in five years time when most C programmers are more
    > familar with the C99 syntax.
    > So could you use a macro instead, such as:
    > #define STRUCT_ELEM_INIT(m) m :
    > This would avoid the dependency on a gcc-specific feature, and would
    > allow automatic conversion to the C99 syntax when that becomes widely
    > established.

    A simple perl/sed/awk script would allow automatic conversion to the C99
    syntax at any time when anyone cared.... And amazingly, the code would
    still be readable.

    Though, there's no reason not to use the C99 syntax now. GCC has
    supported it for a long time.

    -- Jamie

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

     \ /
      Last update: 2005-03-22 13:56    [W:0.018 / U:7.708 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site