On Sat, 15 Sep 2012, Shubhrajyoti Datta wrote:

Hi ,

Currently the i2c core returns a negative number in case of errors.
I am trying to add support for i2c core to report the number of bytes.
This calls for adding a field to the i2c struct.


So the other callers need to be converted to C99 first like [1].
The issue is that there are many others also [2].

My question is that is there a way to automate the conversion.

Thank you for your interest in Coccinelle. It seems a little bit complicated, but very useful. I'll try to get back to you with a suggestion shortly. It may not be possible to do the translation in its full generality, because Coccinelle is not so good a managing nested structures. Is it common to have an array of structures, like in your example?

julia



Any help would be appreciated.

With Regards,
Shubhro



[1] - http://www.mail-archive.com/[email protected]/msg09432.html
[2] - http://www.mail-archive.com/[email protected]/msg08972.html
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

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

Reply via email to