Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!zaphod.mps.ohio-state.edu!rpi!leah!rds95 From: rds95@leah.Albany.Edu (Robert Seals) Newsgroups: comp.unix.aix Subject: predefined macros and "MAXFLOAT" Keywords: xlc, defines Message-ID: <3583@leah.Albany.Edu> Date: 29 Aug 90 17:51:04 GMT Organization: The University at Albany, Computer Services Center Lines: 26 Hello, 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@asrcmv.albany.edu or rds95@leah.albany.edu or rob@dinner.albany.edu I have no idea what the uucp path to me is.