Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Fully ANSI compliant option???

1 view
Skip to first unread message

Dwayne Moore

unread,
Mar 12, 1999, 3:00:00 AM3/12/99
to
To enforce full ANSI compliance one would specify the following options:

gen(longdouble, yes) // Note: The size of a long double is not defined by
the language standard
gen(winmain, no)
gen(rtti, yes)
lang(allowTypedefAsClassName, no)
lang(anonymousStructs, no)
lang(compatFriendDeclarations, no)
lang(compatTempAccessChecking, no)
lang(compatTemplateSpecialization, no)
lang(compatMath, no)
lang(compatStr, no)
lang(extendedAnonymousUnions, no)
lang(illformedPointerToMember, no)
lang(implicitInt, no)
lang(longlong, no)

I have opened a feature to suggest that a single option be created which
would be the equivalent of setting these options.

You could define an options group in a separate .icc file which you could
include in any icc file where you wish to use it:

// ansi.icc
// Options to enforce Full ANSI compliance
option FullANSIcompliance = gen(longdouble, yes),

gen(winmain, no),

gen(rtti, yes),

lang(allowTypedefAsClassName, no),

lang(anonymousStructs, no),

lang(compatFriendDeclarations, no),

lang(compatTempAccessChecking, no),

lang(compatTemplateSpecialization, no),

lang(compatMath, no),

lang(compatStr, no),

lang(extendedAnonymousUnions, no),

lang(illformedPointerToMember, no),

lang(implicitInt, no),

lang(longlong, no)

// sample.icc
include "ansi.icc"

option FullANSIcompliance
{
// all the target and source directives, etc
}

Dwayne Moore
VisualAge C++ Service & Support

0 new messages