>> @display@ >> expression* x, y; >> @@ >> *y = (x)(...); >> ... when != y > > device_link_add does not look like a function pointer.
Can a known function name be equivalent to a function pointer? See also: https://en.cppreference.com/w/c/language/pointer#Pointers_to_functions https://denniskubes.com/2013/03/22/basics-of-function-pointers-in-c/ https://en.wikipedia.org/wiki/Function_pointer#Example_in_C https://www.learncpp.com/cpp-tutorial/78-function-pointers/ Does the semantic patch language (Coccinelle software) need an extra data type conversion? Regards, Markus _______________________________________________ Cocci mailing list [email protected] https://systeme.lip6.fr/mailman/listinfo/cocci
