Julia Lawall <julia <at> diku.dk> writes: > OK, I'm not very eager to commit this change, because it will break C code > like: > > if (x<y) ... [snip] > If this turns out to be good enough to do some things, I can try to figure > out how to make this depend on some command-line option.
Thanks! I will test this next week if that is OK. I think that the rules on the use of [<>] should be enough to keep those cases separate. Thinking about it quickly, it seems to me that those characters will only be allowed in type names or in function/method names which include a ':' character *later in the name*. In other words, I don't think they can appear after the last colon in a method name, or in a method name with no embedded colons. > For your code, you will also want to make a file cpp.h containing: > > #define RETVAL(x) x > > And to run Coccinelle with the option -macro_file cpp.h Thanks. Unfortunately I sent off my last post just before reading this, as you probably guessed. Regards, Michael _______________________________________________ Cocci mailing list [email protected] http://lists.diku.dk/mailman/listinfo/cocci (Web access from inside DIKUs LAN only)
