alternate keywords in C
Joe Buck
Joe.Buck@synopsys.COM
Thu Jun 24 23:18:00 GMT 2004
On Thu, Jun 24, 2004 at 03:43:49PM -0700, Jim Wilson wrote:
> Randy.Dunlap wrote:
> > Are the forms __asm, __inline, __typeof (and __volatile) also
> > accepted? (I see uses of __asm, __type, __inline, and __volatile
> > in the Linux kernel source code.)
>
> Yes.
>
> Most keyword extensions support both the __keyword and __keyword__
> forms. However, a few are only available as __keyword, and a few are
> only available as __keyword__. There is no rhyme or reason here. You
> just have to try them, or look at the list in the source code
> (gcc/c-parse.in).
Is there any good reason for this? It might be simplest just to correct
by adding the missing keywords (so that for any __foo keyword, __foo__
is also a keyword) unless there is a good reason otherwise.
More information about the Gcc
mailing list