lkml.org 
[lkml]   [2000]   [Jan]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] 2.3.41 - cleanup file_operations structs


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/

\
 
 \ /
  Last update: 2005-03-22 13:56    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site