Just an idea. I do not know if this is possible to do all within coccinelle, but it should at least be possible to do in a two phase manner using coccinelle to insert some "42 placeholder", e.g. COUNT_REPLACE_THIS, and then process the files afterwords with a simple perl script or similar which will just replace COUNT_REPLACE_THIS with an increasing number.
BR Håkon Løvdal _______________________________________________ Cocci mailing list [email protected] http://lists.diku.dk/mailman/listinfo/cocci (Web access from inside DIKUs LAN only)
