Re: [PATCH] 2.3.41 - cleanup file_operations structs

From: Jeff Garzik (jgarzik@mandrakesoft.mandrakesoft.com)
Date: Mon Jan 31 2000 - 11:44:38 EST


On 30 Jan 2000, David Wragg wrote:

> James Manning <jmm@raleigh.ibm.com> writes:
> > [ Sunday, January 30, 2000 ] Ingo Oeser wrote:
> > > This feature is not ANSI-C, so it is gcc specific.
> >
> > Yup, and since the kernel is gcc-specific anyway, we might as well
> > get some benefit from it :)
>
> In cases where standard C does not suffice, I would agree. But C99
> also has designated initializers, with a different syntax from gcc:
>
> gcc-style: struct my_struct foo = { my_member: 42 };
> C99-style: struct my_struct foo = { .my_member = 42 };
>
> C99 is only a de jure standard at the moment, but this is a feature of
> C99 that will be adopted fairly quickly by other compiler vendors

gcc is already working towards that support.

However, the kernel is gcc specific and there is no problem adding more
gcc-specific stuff. (yes, I know there are always exceptions...)

        Jeff

-
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:29 EST