New update for CMOC 0.1.85 now available for CoCo-Pi
Release notes for 0.1.85:
Function-local function prototypes are now supported.
A K&R prototype for a function that specifies no return type is now allowed, but only at the top level, not inside a function. The return type is assumed to be int.
Example: f(); int main() { return f(); }
Calling an undeclared function does not generate an “undeclared identifier” error anymore. It now generates a warning about calling an undeclared function. This can be useful to port K&R-style code. Suchs calls are assumed to return an int.
New option -Wno-unknown-first-dim keeps the compiler from issuing “array … assumed to have one element” warnings.
The “too many elements […] in initializer for array” error is now a warning and new option -Wno-too-many-elements keeps the compiler from issuing it.
The compiler now warns about bit shifts that always give zero. New option -Wno-shift-always-zero turns off this warning.
Added small optimizations.
https://perso.b2b2c.ca/~sarrazip/dev/cmoc.html
When updating your CoCo-Pi, please make sure to select “Update CoCo-Pi from git repo” and “Run CoCo-Pi fix script” in order for all the changes to be applied.