1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-08-07 06:43:02 +03:00

- xpointer.c include/win32config.h win32/libxml2/libxml2.def.src

libxml.h : Yon Derek provided a set of changes to compile from
  CVS on Windows/MSC
Daniel
This commit is contained in:
Daniel Veillard
2001-06-28 12:54:16 +00:00
parent 0e4cd17b61
commit 87ee914013
5 changed files with 11 additions and 6 deletions

View File

@@ -1,3 +1,9 @@
Thu Jun 28 14:51:44 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
* xpointer.c include/win32config.h win32/libxml2/libxml2.def.src
libxml.h : Yon Derek provided a set of changes to compile from
CVS on Windows/MSC
Thu Jun 28 14:11:28 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr> Thu Jun 28 14:11:28 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
* parser.c: fixed UTF8 BOM support in push mode * parser.c: fixed UTF8 BOM support in push mode

View File

@@ -99,7 +99,7 @@ static int isnan (double d) {
/* Microsoft's C runtime names all non-ANSI functions with a leading /* Microsoft's C runtime names all non-ANSI functions with a leading
underscore. Since functionality is still the same, they can be used. */ underscore. Since functionality is still the same, they can be used. */
#ifdef _MSC_VER #ifdef _MSC_VER
#include <libxml/xmlversion.h> #include <libxml/xmlwin32version.h>
#ifndef WITH_TRIO #ifndef WITH_TRIO
#define snprintf _snprintf #define snprintf _snprintf
#define vsnprintf _vsnprintf #define vsnprintf _vsnprintf

View File

@@ -13,9 +13,8 @@
#include "win32config.h" #include "win32config.h"
#else #else
#include "config.h" #include "config.h"
#endif
#include <libxml/xmlversion.h> #include <libxml/xmlversion.h>
#endif
#ifdef WITHOUT_TRIO #ifdef WITHOUT_TRIO
#include <stdio.h> #include <stdio.h>

View File

@@ -18,7 +18,7 @@
*/ */
#define LIBXML2_COMPILING_MSCCDEF #define LIBXML2_COMPILING_MSCCDEF
#include "../../include/libxml/xmlversion.h" #include "../../include/libxml/xmlwin32version.h"
LIBRARY libxml2 LIBRARY libxml2
EXPORTS EXPORTS

View File

@@ -2726,13 +2726,13 @@ xmlXPtrStringRangeFunction(xmlXPathParserContextPtr ctxt, int nargs) {
CHECK_TYPE(XPATH_NUMBER); CHECK_TYPE(XPATH_NUMBER);
number = valuePop(ctxt); number = valuePop(ctxt);
if (number != NULL) if (number != NULL)
num = number->floatval; num = (int) number->floatval;
} }
if (nargs >= 3) { if (nargs >= 3) {
CHECK_TYPE(XPATH_NUMBER); CHECK_TYPE(XPATH_NUMBER);
position = valuePop(ctxt); position = valuePop(ctxt);
if (position != NULL) if (position != NULL)
pos = position->floatval; pos = (int) position->floatval;
} }
CHECK_TYPE(XPATH_STRING); CHECK_TYPE(XPATH_STRING);
string = valuePop(ctxt); string = valuePop(ctxt);