hi!
In some header file I have a Macro
#define Static static
that is used to "turn off static" for some unit tests. The problem is
that I want to match a cocci patch on a function preceeded by this
macro, which works, if the macro is in the same file as the code, but
doesn't if the macro is in a header file... I tried to use all_includes
&friends to persuade spatch to use the macro from the include file, but
somehow... :-)
to give a simple example, the patch
@@ @@
- foo
+ bar
(...)
works on:
#define Static static
Static int mystaticfunc (int x, int y)
{
foo(3);
}
but does not work on:
#include"myfoobar.h"
Static int mystaticfunc (int x, int y)
{
foo(3);
}
where the macro is in the header file...
Any ideas on how to get cocci to use the macro from the header file?
thx!
Andi
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)