Messages in this thread | | | Date | Tue, 14 Oct 2008 18:25:48 +0200 | From | "Frédéric Weisbecker" <> | Subject | Re : [PATCH 1/2] drivers/pci/hotplug/cpqphp_ctrl.c: Convert && to || |
| |
2008/10/14, Julia Lawall <julia@diku.dk>: > From: Julia Lawall <julia@diku.dk> > The semantic patch that makes this change is as follows: > (http://www.emn.fr/x-info/coccinelle/) > > // <smpl> > @disable and_comm@ > expression E; > identifier fld; > @@ > > - !E && !E->fld > + !E || !E->fld > // </smpl> >
What a great tool. :) I guess you gathered a lot of precious patterns since the creation of coccinelle!
| |