lkml.org 
[lkml]   [2008]   [Oct]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe : [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!


\
 
 \ /
  Last update: 2008-10-14 18:29    [W:0.033 / U:0.376 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site