Hello, and best wishes,
Coccinelle’s parser appears to be confused by the definition of
‘FUNC_NAME’ in the example below:
--8<---------------cut here---------------start------------->8---
int foo (int bar)
#define FUNC_NAME "foo"
{
return bar + 3;
}
#undef FUNC_NAME
--8<---------------cut here---------------end--------------->8---
Removing it or commenting it out lets it operate as expected.
The example semantic patch I used is this:
--8<---------------cut here---------------start------------->8---
@@
identifier e, f;
@@
- int f (int e)
+ int f (float e)
{
...
}
--8<---------------cut here---------------end--------------->8---
Is there any chance it could be fixed or otherwise worked around?
Thanks,
Ludo’.
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)