Am 29.03.20 um 13:24 schrieb Julia Lawall:
Everything would be fine if the "static" were not there.
Maybe you could use sed to replace (static by (STATIC in your code base,
then run your script, and then use sed to go the other way...
The problem is that the scripts I'm writing here are called
automatically as part of the build process, it's not just a one-shot
replacement.
FWIW, this can not be parsed either:
RB_DECLARE_CALLBACKS_MAX(STATIC, augment_callbacks, struct
drbd_interval, rb, sector_t, end, NODE_END);
But this can:
RB_DECLARE_CALLBACKS_MAX(_STATIC, augment_callbacks, struct
drbd_interval, rb, sector_t, end, NODE_END);
Maybe it would be possible to "#define _STATIC static" for this case --
spatch handles that just fine.
I don't know if it could be possible to allow static in argument lists.
That would be amazing if it's easily possible. If not, I guess we can
probably just live with the workaround.
julia
Thanks yet again for all your help.
--
Christoph Böhmwalder
LINBIT | Keeping the Digital World Running
DRBD HA — Disaster Recovery — Software defined Storage
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci