On Sun, 28 Nov 2010, Michael Stefaniuc wrote:

> Hello,
> 
> I'm trying to match the position of a struct member to be able to do something
> with initializations like this:
> 
> struct s {
>     int a;
>     int b;
> }
> ...
> struct s x = {1, 2};
> 
> Is there something like the parameter list[n] / expression list[n] for
> function but which operates on structs? "declaration list" isn't available.

It would be "field list".  But unfortunately that doesn't exist at the 
moment.  This is the second use for it I have seen recently, so I will try 
to add it soon.

julia
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to