Jan Kok wrote:

> a) who says member names can begin with "."?  I don't see it in The C 
> Programming Language, 2nd Ed. by K&R, and I don't see it in the 
> extensions listed in the gcc documentation (although it mentions that 
> "$" is allowed as an extension).
> 


RMS says. It actually means the member name without the ".". This is a
GNU CC extension. This kind of syntax is used in Linux kernel source
code a lot. It is much easier to init some specific field of a
structure in this way.

P.S. IIRC, C9X or C2k does support this syntax.

Ollie

> b) I also don't see where <member>=<value> is allowed for 
> initialization.  The standard way is { <value>, <value>...}
> 
>  
> 
> static struct stream rom_stream __stream = {
> .init = init_bytes,
> .read = read_bytes,
> 
>  
> 
> Thanks,
> 
> - Jan
> 
> 
>  
> 



Reply via email to