Oops, sorry, I thought the problem was to identify which names corresponded to functions, but I see that it is not. I guess if you have a function named foo, then you don't have some other global variable named foo as well. So you could try:
@@ local idexpression bad; @@ ( bad | - foo + bar ) > Btw. how do I handle variable length expressions, where I wan't to insert the > same expression list again? > -foo(E...) > +bar(E...) You can just put the ... on another line, ie - foo(E, + bar(E, ...) You can also put the comma on the common line, or the (E as well if you don't mean to change that. julia _______________________________________________ Cocci mailing list [email protected] http://lists.diku.dk/mailman/listinfo/cocci (Web access from inside DIKUs LAN only)
