prefix_func = "one_argument_function_%s" % func

@@
expression E;
identifier r.func,s.prefix_func;
@@
-func(E);
+prefix_func(E);

Does this source code adjustment need a safety check if the prefix that should be added is already present in the function name?

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