Hi,

Is it possible to somehow use C expressions to filter coccinelle output?
Specifically, I have to find all structure definitions, which are
smaller than X bytes.

struct st_1 { ... };


(the syntax is wrong, it just shows what I mean:)

@@
identifier x | sizeof(struct x) < 12;
@@

*struct x {
  ...
};


Thanks,

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

Reply via email to