On Wed, Mar 31, 2010 at 09:55:55PM +0200, Julia Lawall wrote:
> On Wed, 31 Mar 2010, Frederic Weisbecker wrote:
> 
> > Hi,
> > 
> > I'm trying to fetch all declarations of a variable of a given
> > type and patch one of its field assignment.
> > 
> > In this particular case, I want to do this:
> > 
> > struct file_operations foo = {
> >     .....
> > -   .ioctl = blah,
> > +   .unlocked_ioctl = blah,
> >     .....
> > };
> 
> Make the script as above, but with just three dots each time, instead of 
> five.
> 
> Coccinelle should manage the presence or absence of , so it should be ok 
> even if .ioctl is at the end of the list and doesn't have a comma after 
> it.
> 
> julia


Ah indeed, I was close :)

Thanks Julia and Michael!

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

Reply via email to