Transformations for implementations of functions without explicit return type
Hello,
Does the current software "Coccinelle" support to transform implementations of functions where a return type was not explicitly specified for it in a source file?
https://en.wikipedia.org/wiki/C99#Design
Regards,
Markus
Quoted 5 lines · SF Markus Elfring
Hello,
Does the current software "Coccinelle" support to transform implementations of functions where a return type was not explicitly specified for it in a source file?
https://en.wikipedia.org/wiki/C99#Design
I think so, but perhaps not in the released version.
julia
Quoted 8 lines
Regards,
Markus
_______________________________________________
Cocci mailing list
Cocci at systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci
Quoted 4 lines
Quoted 3 lines
Does the current software "Coccinelle" support to transform implementations of functions where a return type was not explicitly specified for it in a source file?
I think so, but perhaps not in the released version.
Would you like to try out if a function like "my_free" could be adjusted after the reuse of your recent (unpublished) updates?
https://github.com/gvelez17/glimpse/blob/9557d48221aeaa64a43477c82ff6c66c94324081/index/io.c#L662
Regards,
Markus
Quoted 1 line
The lack of a return type is not supported for K&R functions.
That is a pity.
Now it seems that a function like "my_free" could only be adjusted after a patch will be applied from my bug report.
https://github.com/gvelez17/glimpse/issues/6
How do you think about the possibility to transform more such implementation details from a Kernighan/Ritchie coding style to a current C standard approach?
Regards,
Markus
[Cocci] Conversion of coding style "K&R" to newer C standard approaches?
In reply to a message not in the archiveQuoted 5 lines
Quoted 4 lines
How do you think about the possibility to transform more such implementation details from a Kernighan/Ritchie coding style to a current C standard approach?
We don't really support K&R C.
A manual software update is generally also possible. It would be nice if more dedicated tools can help in a corresponding automatic conversion, wouldn't it?
http://astyle.sourceforge.net/
Regards,
Markus