On Fri, May 06, 2011 at 08:33:46PM +0200, 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 don't think it's necessary if function names to be changed are explicitly specified like: identifier func ~= "^\(foo\|bar\|blah\)$"; Thanks, Isaac _______________________________________________ Cocci mailing list [email protected] http://lists.diku.dk/mailman/listinfo/cocci (Web access from inside DIKUs LAN only)
