Open Enlightenment-zz opened 9 years ago
C99 support in Open Watcom is experimental and not very complete (and prone to bugs). The option to activate it was left undocumented intentionally. That said, perhaps it should be documented anyway, perhaps with a caveat.
yeah
The intermingled declaration of variables anywhere in the code is a very important C99 feature, and the primary reason I enable the C99 feature.
C99 is so important these days that it would be very helpful to everyone to read a C99 compatibility document. List each C99 requirement, including library file features, and state the compatibility for each item, including a list of which features are prone to bugs.
Please add a C99 option to the "C Compiler Switches" screens.
Currently a person has to do the following: a) Pull-down "Options". b) Choose "C Compiler Switches". c) Choose "4. Miscellaneous Switches". d) Put "-za99" in "Other options" box.
Solution 1 - add text below the "Other options" box as a reminder of how to do it. Possibly add something along the lines of "-za99 for Partial C99 Conformance.". I don't care about the text, as long as "-za99" and "C99" is included in the text. This is a very simple solution, not perfect, but better than current undocumented implementation.
Solution 2 - add a new "check box" to one of the "C Compiler Switches" screens that enables the -za99 option flag.
RECOMMENDATION: add Solution 1 as soon as possible, then implement Solution 2 at some future date.