In the development of a semantic patch, I found myself writing this: @@ struct task_struct *task; @@ - (task)->pid == 0 + is_idle_task(task)
@@ struct task_struct *task; @@ - (task)->pid != 0 + !is_idle_task(task) It seems like some way should exist to only write one of those and have coccinelle derive the other one, but I didn't manage to find it. I'd like to avoid the redundancy if possible; any suggestions? - Josh Triplett _______________________________________________ Cocci mailing list [email protected] http://lists.diku.dk/mailman/listinfo/cocci (Web access from inside DIKUs LAN only)
