Coccinelle seems to have issue with function pointer. For instance if i want to add a new argument to a function pointer typdef i need to replace the whole typedef as one line. For instance:
test.c: typedef int (*filler_t)(void *, struct page *); test.spatch: @@ type T1, T2; @@ -typedef int (*filler_t)(T1, T2); +typedef int (*filler_t)(T1, struct address_space *, T2); Anything else will not work and also if the function pointer typedef spread accross multiple line then the above does not work, in fact i have not found a work around for that case. I am missing some syntax that make this work with coccinelle ? Cheers, Jérôme _______________________________________________ Cocci mailing list [email protected] https://systeme.lip6.fr/mailman/listinfo/cocci
