I'd like to use coccinelle to change the namespace of all public
identifiers (functions in particular) in a program.  eg: foo_xxx ->
bar_xxx for all substrings 'xxx'.

It seems this should be easy with coccinelle but I couldn't work out
how to do it.  This is about as far as I got:

@@
identifier f ~= "foo_.*";
@@

- f
+ ## what to write here?? ##

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
New in Fedora 11: Fedora Windows cross-compiler. Compile Windows
programs, test, and build Windows installers. Over 70 libraries supprt'd
http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to