I made it almost work with the following file for the -macro_file: #define pTHX_ #define aTHX_ #define DllExport
and the following semantic patch: @@ expression ope; @@ + OpSibling( ope->op_first + ) - ->op_sibling @@ expression ope; @@ + OpSibling( ope + ) - ->op_sibling The first rule gets rid of the already tagged token problem, by doing the cases that have the field op_first first. This is just a hack, based on what I observe in the source code. The fact that I don't actually modify ope also helps with the already tagged token problem, when there are nested dereferences of op_sibling fields. julia _______________________________________________ Cocci mailing list [email protected] http://lists.diku.dk/mailman/listinfo/cocci (Web access from inside DIKUs LAN only)
