Splendid, worked like a charm once I've left only "expression a, b, c" in the header. Thank you for quick and detailed response.

On a related note: would it be possible to remove old multi-line #define using spatch as well?

That's of course more of a nitpicking but would be nice to get rid of the old definition once it's not used anymore as well.

My attempts at that resulted only in "nothing to attach pragma to" error so it seems like #define itself is handled as a special case of some sort while the use of macro and function is equivalent.

12.12.18 13:26, Julia Lawall пишет:

Actually, the fact that old_junk and new_stuff are defined as macros is
irrelevant for this rule.  Coccinelle will just look at the calls.  It
doesn't expland macros, so it doesn't know whether the call is to a macr
or to a function.

julia

--
- Max Suraev <[email protected]>       http://www.sysmocom.de/
=======================================================================
* sysmocom - systems for mobile communications GmbH
* Alt-Moabit 93
* 10559 Berlin, Germany
* Sitz / Registered office: Berlin, HRB 134158 B
* Geschaeftsfuehrer / Managing Directors: Harald Welte

_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci

Reply via email to