Here are two that work and one that fails, hopefully it will make more
sense.
poperror is a macro that uses m, so I know we need it there.

@@
function f;
@@
f(...){
+Mach *m = machp();
...
poperror();
}

Or I can add it to everything :-)
@@
function f;
@@
f(...){
+Mach *m = machp();
...
}

Here is one I can not get to work:
@@
typedef Mach;
Mach *m;
function f;
identifier x;
statement s;
@@
f(...){
+ Mach *m = machp();
...
x = m
...
}

The x = m could also be m->x, or if (m) s, and so on

thanks again

ron
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci

Reply via email to