On Sun, 10 Oct 2010, Vasiliy Kulikov wrote:

> Hi,
> 
> Is there any way to define X as _any_ struct, no matter what struct
> exactly?
> 
> @@
> type T;
> struct T *a, *b;
> @@

The following is intended to work:

@@
identifier x;
struct x *a;
@@

*a

It parses, but I'm not getting any matches, even if the struct has the 
name x.  I will have to look into it.  I don't think I can do it today, 
unfortunately.

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

Reply via email to