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:
@@ -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
|
||||||
|
@@ -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
|
||||||
|
3
libxml.h
3
libxml.h
@@ -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>
|
||||||
|
@@ -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
|
||||||
|
@@ -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);
|
||||||
|
Reference in New Issue
Block a user