Dear Julia,
I'm trying to develop a coccinelle script that would match structure 
declarations
whose only members are function pointers but nothing else.
Can you tell me how it is possible to express this in coccinelle?
I already tried this:

@structure@
identifier idtype, y;
type t;
@@
struct idtype {
        t (*y)(...);
        ... when = t (*y)(...);
};

but it didn't work.
Thanks Emese

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

Reply via email to