Hi, This one seems to work
@@
identifier s;
identifier d;
@@
struct s {
...
-spinlock_t d;
...
};
Regards,
Ievgenii Meshcheriakov
28 лютого 2012 о 15:31 -0800 ron minnich написав(-ла):
> 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)
signature.asc
Description: Digital signature
_______________________________________________ Cocci mailing list [email protected] http://lists.diku.dk/mailman/listinfo/cocci (Web access from inside DIKUs LAN only)
