Hello all,

I’m interested in using Coccinelle.
Currently I’m playing with the example „Removing a function argument":

It works well with drivers/atm/firestream.c,
but if the definition of the function and the call are in two different files it doesn’t work anymore.
It seems that the reference „rule1.fn“ doesn’t work across files?
I created a minimal testcase (see attachment).
Is there any way to make this work?

best regards
Lennart Glauer

Attachment: patch.cocci
Description: Binary data

Attachment: testA.c
Description: Binary data

Attachment: testA.h
Description: Binary data

Attachment: testB.c
Description: Binary data

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

Reply via email to