Re: [xml] XPath question w/ libxml2



On Fri, 2004-04-16 at 01:15, Daniel Veillard wrote:

  The fist thing would be to check the NaN initialization in xpath.c
and taht number('NaN') actually produce the value.

An easy place to do this is to compile trionan.c by itself. This is
done by defining the STANDALONE macro during compilation. I do not
know the exact syntax for the Win32 compiler used, but to give you
an example, I did as follows:

[breese stellifer:...trio/head/trio] cc -DSTANDALONE trionan.c -o
trionan
[breese stellifer:...trio/head/trio] ./trionan
Nan   : + FP_NAN          nan
PInf  : + FP_INFINITE     inf
NInf  : - FP_INFINITE     -inf
PZero : + FP_ZERO         0
NZero : - FP_ZERO         -0
PNorm : + FP_NORMAL       1
NNorm : - FP_NORMAL       -1
PSub  : + FP_SUBNORMAL    1e-309
NSub  : - FP_SUBNORMAL    -1e-309
NaN :  nan 0x000000000000f87f ( 1,  0)
PInf:  inf 0x000000000000f07f ( 0,  1)
NInf: -inf 0x000000000000f0ff ( 0, -1)
NaN :  nan 0x000000000000f8ff ( 1,  0)
PInf:  inf 0x000000000000f07f ( 0,  1)
NInf: -inf 0x000000000000f0ff ( 0, -1)





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]