Re: [PATCH] 2.3.41 - cleanup file_operations structs

From: Jamie Lokier (lkd@tantalophile.demon.co.uk)
Date: Sun Jan 30 2000 - 17:40:41 EST


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/



This archive was generated by hypermail 2b29 : Mon Jan 31 2000 - 21:00:26 EST