Re: [xml] win32

Date view Thread view Subject view Author view

From: David Doolin (doolin@cs.utk.edu)
Date: Mon Jan 31 2000 - 12:20:37 EST


The following code (in xpath.c) barfs at the error:
 
     ...

     #elif defined(finite) || defined(HAVE_FINITE)
     int isinf(double x) { return !finite(x) && x==x; }
     #elif defined(HUGE_VAL)
-> static int isinf(double x)
     {
         if (x == HUGE_VAL)
             return(1);
         if (x == -HUGE_VAL)
             return(-1);
         return(0);
     }
     #endif

Here is what the compiler has to say about it:

xpath.c
D:\dave\libxml-1.8.6\xpath.c(113) : error C2084: function 'int __cdecl isinf(double )' already has a body
D:\dave\libxml-1.8.6\xpath.c(1127) : warning C4244: 'function' : conversion from 'double ' to 'float ', possible loss of data
D:\dave\libxml-1.8.6\xpath.c(1176) : warning C4244: 'function' : conversion from 'double ' to 'float ', possible loss of data
D:\dave\libxml-1.8.6\xpath.c(2679) : warning C4244: '=' : conversion from 'double ' to 'int ', possible loss of data
D:\dave\libxml-1.8.6\xpath.c(2683) : warning C4244: '=' : conversion from 'double ' to 'int ', possible loss of data
Error executing cl.exe.

My solution is to just comment out the offending code. I then get a build
which correctly parses the examples. However, this is a distasteful
solution so I would like to fix it so it works. This is a bit out
of my area of expertise, so I welcome any comments.

Please let me know if I have left out any useful information.

Thanks,

Dave Doolin

----
Message from the list xml@xmlsoft.org
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@xmlsoft.org


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:30:00 EDT