@@ bool x; @@
- !!x
+ x

I don't think there is a bool type in C...

Or:

@@ expression x; @@
- !!is_idle_task(x)
+ is_idle_task(x)

This is probably a good choice.

julia

A cleanup rule like that does seem preferable to duplicating the
main rule of the patch.

Still hopeful that a future version of spatch might handle the double
negative for me. :)

- Josh Triplett

_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to