I wonder if coccinelle can help me with the following issue.
There is a type, let's call it sometype_t, that is typedef-ed to int.
There is an API which uses that type consistently to provide for possible future
extensions.  But that there are many lax users of that API which frequently use
int instead of sometype_t.
For example, sometimes a sometype_t variable is assigned with int value, or
conversely a sometype_t value is assigned to int variable, or int value is 
passed
in a function parameter where sometype_t is expected.

I wonder if I could use the power of coccinelle to easily find and perhaps even
fix such lax type handling.

Thanks!
-- 
Andriy Gapon
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to