predefined macros and "MAXFLOAT"
Robert Seals
rds95 at leah.Albany.Edu
Thu Aug 30 03:51:04 AEST 1990
Hello,
<math.h> defines MAXFLOAT as (*((float *) (&SFPMAX))), and SFPMAX
is an extern unsigned int. So, it's impossible to do something like
const float lims[] = {1.0, 2.5, MAXFLOAT};
because MAXFLOAT isn't constant.
I suppose there's nothing really wrong with this, but it kinda
bugs me that it's a variable. What do YOU think? Should it
be just #defined to be the real value, or is this tricky business
better?
And another thing, I can't find anyplace (even under "Predefined Macros"
in the info explorer) what sort of groovy things are defined by the
compiler - there must be something like "AIX" or "(C) IBM Corp" or
something, eh?
rob
--
--------------------------------------------------------------------------------
"Unix has its weak points, but its file system is not one of them." -Chris Torek
rob rob at asrcmv.albany.edu or rds95 at leah.albany.edu or rob at dinner.albany.edu
I have no idea what the uucp path to me is.
More information about the Comp.unix.aix
mailing list