2010/1/7 Michael Stefaniuc <mstef...@redhat.com>: > Hello Reece, > Impressive script. Not sure if you have heard of coccinelle (semantic > patcher, http://coccinelle.lip6.fr/); it sees some usage in the Linux > Kernel project. As I would like to see it used on Wine too I've have > added the corresponding cocci file for this task. This task is a prime > example of coccinelle's intended usage. > > ------Snip DllCanUnloadNow.cocci------ > @@ @@ > DllCanUnloadNow( ... ) { > ... > - FIXME( ... ); > ... > } > ------Snip DllCanUnloadNow.cocci------ > > Run it with: > spatch -sp_file DllCanUnloadNow.cocci -patch $winesrcdir $winesrcdir/dlls > > And you'll get a patch in git diff file format.
This also looks similar to what Mozilla are investigating with the Elsa/Oink/Pork analysis and refactoring tools (https://developer.mozilla.org/en/Pork). - Reece