On Fri, 6 May 2011, SF Markus Elfring wrote:

> > 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?

I'm not sure why that is a problem, but one can certainly write whatever 
one wants in the python code.

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

Reply via email to