Oddities in ANSI 3rd review
Karl Heuer
karl at haddock.ISC.COM
Thu Aug 4 14:09:11 AEST 1988
In article <253 at gannet.cl.cam.ac.uk> am at cl.cam.ac.uk (Alan Mycroft) writes:
>2. 4.12.1: "[In <time.h>] 'struct tm' ... shall contain *at least*
> the following members... int tm_sec; ...".
> However, it would seem that an *implementation* would be non-conforming
> if it contained more members: ...
Well, a conforming implementation could certainly add members in the reserved
namespace (leading underscore), and it could provide convenient access to them
via a macro "#define tm_usec __tm_extended_usec" which is only defined if the
user has enabled the extensions ("#include <extensions.h>" or whatever). This
is the same sort of situation that the implementor must face when providing
non-ANSI functions like read().
Karl W. Z. Heuer (ima!haddock!karl or karl at haddock.isc.com), The Walking Lint
More information about the Comp.lang.c
mailing list