Mail Archives: djgpp-workers/2003/11/09/17:54:42
Hello.
Eli Zaretskii wrote:
>
> > Date: Sun, 09 Nov 2003 19:47:37 +0000
> > From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
> >
> > I just re-read the C99 standard and I don't see where it says the user can
> > modify math_errhandling.
>
> Does it say whether the user could take an address of
> math_errhandling?
The C99 standard, section 7.12, paragraph 9, says:
"The macros
MATH_ERRNO
MATH_ERREXCEPT
expand to the integer constants 1 and 2, respectively; the macro
math_errhandling
expands to an expression that has type int and the value MATH_ERRNO,
MATH_ERREXCEPT, or the bitwise OR of both. The value of math_errhandling is
constant for the duration of the program. It is unspecified whether
math_errhandling is a macro or an identifier with external linkage. If a macro
definition is suppressed or a program defines an identifier with the name
math_errhandling, the behavior is undefined."
Since math_errhandling can be a macro, the answer is no.
Bye, Rich =]
--
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]
"You can't evaluate a man by logic alone." -- McCoy, "I, Mudd", Star Trek
- Raw text -