On Fri, Oct 12, 2018 at 4:42 PM Timur Tabi <[email protected]> wrote:
> That made a huge difference, thanks.  I still need to keep the Python
> code that merges the string into one line, but that could be just for
> my own code vs Coccinelle's parser.

One drawback with your version is that it doesn't compress parameters
into fewer lines, like the original did, so I added this rule at the
very end:

// Finally, compress all the parameters into as few lines as possible
@depends on rules@
expression list x;
@@
-NV_PRINTF(x);
+NV_PRINTF(x);

I think now that my script is perfect.  Thanks again.
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci

Reply via email to