I really think you should try to do what you want, and then come back with
some concrete code that is or is not satisfactory.

Would you like to apply a semantic patch on your own source file "spatch_linux.c" that deals with calls of the functions "printf" and "execvp"? ;-)
https://github.com/coccinelle/coccinelle/blob/0708f913629519b5dbc99f68b6f3ea5ab068230c/tools/distributed/spatch_linux.c#L30

Is the version of this file still relevant for your source code transformation 
tool?

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

Reply via email to