How can I find out cc or cpp symbols?
Doug Gwyn
gwyn at smoke.BRL.MIL
Sat May 6 02:23:31 AEST 1989
In article <1339 at ncr-sd.SanDiego.NCR.COM> Greg.Noel at SanDiego.NCR.COM (Greg Noel) writes:
>I've wondered why the ANSI committee didn't simply mandate that there be a
>header file, say <default.h>, that was implicitly #included, and that contained
>all the machine-specific, system-specific, and vendor-specific names. This
>would give you the option to look at them, provide a replacement (useful for
>cross-compilations), or generally do anything you wanted with them. Doug,
>was this ever suggested?
Not in that form, that I recall, but there were a variety of suggestions
for ways to "standardize" such parameterization of the environment.
Basically the use of macros for denoting specific operating systems and
hardware doesn't seem to be fine-grained enough. People who specialize
in portable applications usually have their own methods for dealing with
such environmental variation, and it doesn't seem that one particular
method stands out as one that should be "legislated". The emphasis was
on providing a sufficiently useful standard environment that there would
be little need for conditionalizing code based on such factors.
More information about the Comp.unix.questions
mailing list