> I wanted to be able to re-run spatch on an already patched content. The
> use case is to add new function prototypes manually and run spatch to
> handle the associated #define automatically.
I think that you could do the following:
@r@
identifier func;
@@
#define func BAR(func)
@s@
identifier r.func;
position p;
@@
func@p(...) {...}
@@
identifier func;
position p != s.p;
@@
+#define func BAR(func)
func(...) { ... }
julia
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci