lkml.org 
[lkml]   [2000]   [Jan]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
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.

enjoy,
-- Jamie

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:56    [from the cache]
©2003-2011 Jasper Spaans