level Language Option (C)

Syntax: Default:
lang(level, ansi)
lang(level, extended)
lang(level, saal2)
lang(level, saa)
lang(level, classic)
lang(level, ansi)
lang(level, extended)

This option determines the language level applied to C source. You can set this option to conform to the C standard, to allow all extended constructs provided by VisualAge C++, or to comply to IBM SAA Level 2 standards.

On AIX, C code must comply to the standard by default.

The default language level is extended on OS/2 and Windows NT platforms. This allows extended constructs for C that are supported by VisualAge C++.

To ensure complete comformance to the C standard, you must ensure the following options and defines are set:

lang(level, ansi)
lang(longLong, no)
define(_ANSI_C_SOURCE)
lang(level, ansi)
lang(longLong, no)
lang(slashSlashComments, no)
opt(integer, no)
opt(float, no)

You can also set the language level from within your source with #pragma langlvl.   The pragma overrides this configuration file option.



C Compilation
Configuration Files


Set Build Options
Build


Language Options for C
Build Options