On Sat, 7 Jul 2012, [email protected] wrote:


On 2012/07/07, at 1:24, Julia Lawall wrote:

FOO is never expanded.  It probably just runs ito the end of the file and
doesn't complain.

If uses of FOO are posing a problem, you can add the following to your
standard.h file:

#define FOO(x) MACROSTATEMENT

Oh, use of parser hints completely slipped out of my mind! Thank you.

Then it will consider calls to FOO to be statements without expecting a ;
Of course in your case you are at top level, so I am not completely sure
it will work either...

Anyway, It seems strange that a call to FOO is expanded when followed by
#undef, while it is not when followed by other directives or non-macro
declarations.

I don't think it is expanded.  It is just parsed differently.

julia
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to