On Sat, 3 Jul 2010, Lucas De Marchi wrote: > It seems that I'm still have problems with this define: > #define __UNUSED__ __attribute__ ((__unused__)) > > although in the file passed to sparse in -macro_file, I did defined > this macro as nothing, just as standard.h does for kernel > #define __UNUSED__ > > For, example, in the file attached -parse_c gives me > nb good = 204, nb bad = 111 =========> 64.761905% good > > If I remove __UNUSED__, than I would have 100% good. > > > Do you have any idea what the problem would be?
I suspect that the parser may be quite insistent about finding the ( after the first word after #define. The definition for __UNUSED__ may be taken into account later. I will take a look tomorrow. julia _______________________________________________ Cocci mailing list [email protected] http://lists.diku.dk/mailman/listinfo/cocci (Web access from inside DIKUs LAN only)
