On 28 October 2010 01:24, Andi Kleen <[email protected]> wrote: > Thanks Julia. That worked, except that it skipped the empty line > after the declarations too, so I ended up with > > foo() > { > int x; > <--- empty line > int y; <--- my new statement > > But I guess that can be manually removed or is there a way to tell this > cocci too?
You can of course insert a "//DELETE PREVIOUS LINE" line just before your new statement, and then postprocess with sed, awk, perl or similarly afterwords. BR Håkon Løvdal _______________________________________________ Cocci mailing list [email protected] http://lists.diku.dk/mailman/listinfo/cocci (Web access from inside DIKUs LAN only)
