open-watcom / open-watcom-v2

Open Watcom V2.0 - Source code repository, Wiki, Latest Binary build, Archived builds including all installers for download.
Other
985 stars 160 forks source link

Request C99 option in IDE #202

Open Enlightenment-zz opened 9 years ago

Enlightenment-zz commented 9 years ago

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.

pchapin commented 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.

sparky4 commented 9 years ago

yeah

Enlightenment-zz commented 9 years ago

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.