On Wed, 2 Feb 2011, SF Markus Elfring wrote:

> > The pattern that I wrote before does exactly the same thing.
> 
> Which one do you mean exactly?
> (We have discussed a few in the meantime.)

\(foo\|xxx\|yyy\)(...) {
<...
- alpha()
+ beta()
...>
}

It works only on the functions foo, xxx, and bar, and does whatever is 
specified in the <... ...>.  For further efficiency, you could use <+... 
...+>  That requires there to be at least one of what is inside, and thus 
only functions where something useful can be done will be considered.

julia


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

Reply via email to