[Cocci] How to remove a macro...

Wolfram Sang w.sang at pengutronix.de
Wed Mar 3 01:56:51 CET 2010

On Tue, Mar 02, 2010 at 04:02:40PM +0100, Aaen, Andreas.Bach wrote:

> The problem with regular expressions is to get the spacing right. Over
> thousands of files there are variants where more spacing is added arround
> like "#include    <std.h>  ". There are many variants, Coccinelle as a

Well, I am all for coccinelle, but to be fair, handling an unknown amount of
spaces is what RE are especially good for, no? (\s+)

Pengutronix e.K.                           | Wolfram Sang                |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.diku.dk/pipermail/cocci/attachments/20100303/e88f6983/attachment.pgp

More information about the Cocci mailing list