Re: [xml] XPath Infinities



On Fri, 27 Apr 2001, Daniel Veillard wrote:

#ifdef XPATH_USE_DIVISION_SHORTCUTS
        xmlXPathNAN = 0;
      xmlXPathNAN /= 0.0;
      xmlXPathPINF = 1;
      xmlXPathPINF /= 0.0;
      xmlXPathNINF = -1;
      xmlXPathNINF /= 0.0;
#else
        xmlXPathNAN = 0.0 / 0.0;
      xmlXPathPINF = 1 / 0.0;
      xmlXPathNINF = -1 / 0.0;
#endif

  I let you provide the patch to the Windows include to define
the XPATH_USE_DIVISION_SHORTCUTS macro.

I've heard some compilers work OK with NaN = -1 ** 0.5 too. You might be
able to detect that in configure.

-- 
<Matt/>

    /||    ** Founder and CTO  **  **   http://axkit.com/     **
   //||    **  AxKit.com Ltd   **  ** XML Application Serving **
  // ||    ** http://axkit.org **  ** XSLT, XPathScript, XSP  **
 // \\| // ** mod_perl news and resources: http://take23.org  **
     \\//
     //\\
    //  \\





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