[Cocci] How to remove a macro...
Aaen, Andreas.Bach
andreas.bach.aaen at crisplant.com
Tue Mar 2 15:31:11 CET 2010
Thanks for the quick reply. It doesn't seems to have anything to do with RELEASESTR() being a macro or not.
See this small example:
--------------
#include <std.h>
foo(42);
#include <stdio.h>
--------------
And the cocci patch:
----------
@@
expression E;
@@
-foo(E);
----------
Now this doesn't remove foo(42);
So how do I remove foo(42); in the example above?
Regards
Andreas Bach Aaen
More information about the Cocci
mailing list