From: Bjorn Reese (breese@mail1.stofanet.dk)
Date: Mon Feb 05 2001 - 12:29:55 EST
Caran julien wrote:
>
> I add you piece of code in config.h, clean and rebuild everything....still
> have the problem.
Actually, the code was supposed to be somewhere at the beginning of
XPathInit() in xpath.c. But I did some investigations on our Digital
Unix 4.0 today, and found out that it doesn't work as I had hoped.
Ignoring floating-point exceptions results in xmlXPathNAN, xmlXPathPINF,
and xmlXPathNINF all being set to 0 (zero). So although this will
prevent the library from crashing, it will malfunction in other ways.
NaN is the only real problem (positive and negative infinity can be
set to HUGE_VAL and -HUGE_VAL respectively). With a C99 compatible
compiler the NAN macro can be used. However, on Digital Unix 4.0 the
correct value for NaN is located in <float.h>. Unfortunately, gcc uses
its own <float.h> file, so those values are not accessible. The only
solution I could think of was to rely on an IEEE implementation of
floating-points, and then manipulate the data structures in <nan.h>.
Not an elegant solution.
I might look closer at the problem when I have more time.
---- Message from the list xml@rpmfind.net Archived at : http://xmlsoft.org/messages/ to unsubscribe: echo "unsubscribe xml" | mail majordomo@rpmfind.net
This archive was generated by hypermail 2b29 : Mon Feb 05 2001 - 12:43:51 EST