On 2012/07/06, at 19:04, Arie Middelkoop wrote:
> This is toplevel code, right?

Yes, it is.

> Then the #define and #undef are toplevel elements, but "FOO(i)" is not (it 
> would require macro expansion).

> I guess that "FOO(i) static long l;" is interpreted as some toplevel 
> declaration of "l", where "FOO(i)" has become part of the declaration somehow.

The parser also parses the following code without entering recovery mode.

#define FOO(X) static int X;
#define BAR 1
FOO(i)

FOO is not expanded in this case. Hmm...
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to