I've been trying to figure out how to remove spinlock_t (as well as
other things) from structures defined in .h files.
So given something like this:
struct a {
int j;
spinlock_t k;
int m;
};
This is one try:
@@
identifier s;
identifier d;
type spinlock_t;
@@
struct s {
<...
-spinlock_t d;
...>
};
which fails miserably :-). Any hints here?
I've got a lot of this working. I really appreciate all the helpful notes.
thanks
ron
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)