[PATCH] 2.3.41 - cleanup file_operations structs

Jamie Lokier lkd en tantalophile.demon.co.uk
Dom Ene 30 18:20:34 CST 2000


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 en vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



Más información sobre la lista de distribución Ayuda