mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-01-26 10:03:34 +03:00
trying to remove some warning when compiling on Fedora Core 3 and 64bits
* xmllint.c xpath.c include/libxml/xpath.h include/libxml/xpathInternals.h python/libxml.c python/libxml_wrap.h: trying to remove some warning when compiling on Fedora Core 3 and 64bits Daniel
This commit is contained in:
parent
2f2a66324d
commit
6ebf3c4c1a
@ -1,3 +1,10 @@
|
|||||||
|
Sun Aug 22 15:16:53 CEST 2004 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
|
* xmllint.c xpath.c include/libxml/xpath.h
|
||||||
|
include/libxml/xpathInternals.h python/libxml.c
|
||||||
|
python/libxml_wrap.h: trying to remove some warning when compiling
|
||||||
|
on Fedora Core 3 and 64bits
|
||||||
|
|
||||||
Sat Aug 21 0:035:10 CET 2004 Kasimier Buchcik <libxml2-cvs@cazic.net>
|
Sat Aug 21 0:035:10 CET 2004 Kasimier Buchcik <libxml2-cvs@cazic.net>
|
||||||
|
|
||||||
* xmlschemas.c: modified parsing of <list>, <union>, <restriction>,
|
* xmlschemas.c: modified parsing of <list>, <union>, <restriction>,
|
||||||
|
@ -197,6 +197,52 @@ struct _xmlXPathAxis {
|
|||||||
xmlXPathAxisFunc func; /* the search function */
|
xmlXPathAxisFunc func; /* the search function */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* xmlXPathFunction:
|
||||||
|
* @ctxt: the XPath interprestation context
|
||||||
|
* @nargs: the number of arguments
|
||||||
|
*
|
||||||
|
* An XPath function.
|
||||||
|
* The arguments (if any) are popped out from the context stack
|
||||||
|
* and the result is pushed on the stack.
|
||||||
|
*/
|
||||||
|
|
||||||
|
typedef void (*xmlXPathFunction) (xmlXPathParserContextPtr ctxt, int nargs);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Function and Variable Lookup.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* xmlXPathVariableLookupFunc:
|
||||||
|
* @ctxt: an XPath context
|
||||||
|
* @name: name of the variable
|
||||||
|
* @ns_uri: the namespace name hosting this variable
|
||||||
|
*
|
||||||
|
* Prototype for callbacks used to plug variable lookup in the XPath
|
||||||
|
* engine.
|
||||||
|
*
|
||||||
|
* Returns the XPath object value or NULL if not found.
|
||||||
|
*/
|
||||||
|
typedef xmlXPathObjectPtr (*xmlXPathVariableLookupFunc) (void *ctxt,
|
||||||
|
const xmlChar *name,
|
||||||
|
const xmlChar *ns_uri);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* xmlXPathFuncLookupFunc:
|
||||||
|
* @ctxt: an XPath context
|
||||||
|
* @name: name of the function
|
||||||
|
* @ns_uri: the namespace name hosting this function
|
||||||
|
*
|
||||||
|
* Prototype for callbacks used to plug function lookup in the XPath
|
||||||
|
* engine.
|
||||||
|
*
|
||||||
|
* Returns the XPath function or NULL if not found.
|
||||||
|
*/
|
||||||
|
typedef xmlXPathFunction (*xmlXPathFuncLookupFunc) (void *ctxt,
|
||||||
|
const xmlChar *name,
|
||||||
|
const xmlChar *ns_uri);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* xmlXPathContext:
|
* xmlXPathContext:
|
||||||
*
|
*
|
||||||
@ -247,7 +293,7 @@ struct _xmlXPathContext {
|
|||||||
|
|
||||||
/* the set of namespace declarations in scope for the expression */
|
/* the set of namespace declarations in scope for the expression */
|
||||||
xmlHashTablePtr nsHash; /* The namespaces hash table */
|
xmlHashTablePtr nsHash; /* The namespaces hash table */
|
||||||
void *varLookupFunc; /* variable lookup func */
|
xmlXPathVariableLookupFunc varLookupFunc;/* variable lookup func */
|
||||||
void *varLookupData; /* variable lookup data */
|
void *varLookupData; /* variable lookup data */
|
||||||
|
|
||||||
/* Possibility to link in an extra item */
|
/* Possibility to link in an extra item */
|
||||||
@ -258,7 +304,7 @@ struct _xmlXPathContext {
|
|||||||
const xmlChar *functionURI;
|
const xmlChar *functionURI;
|
||||||
|
|
||||||
/* function lookup function and data */
|
/* function lookup function and data */
|
||||||
void *funcLookupFunc; /* function lookup func */
|
xmlXPathFuncLookupFunc funcLookupFunc;/* function lookup func */
|
||||||
void *funcLookupData; /* function lookup data */
|
void *funcLookupData; /* function lookup data */
|
||||||
|
|
||||||
/* temporary namespace lists kept for walking the namespace axis */
|
/* temporary namespace lists kept for walking the namespace axis */
|
||||||
@ -305,18 +351,6 @@ struct _xmlXPathParserContext {
|
|||||||
xmlNodePtr ancestor; /* used for walking preceding axis */
|
xmlNodePtr ancestor; /* used for walking preceding axis */
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* xmlXPathFunction:
|
|
||||||
* @ctxt: the XPath interprestation context
|
|
||||||
* @nargs: the number of arguments
|
|
||||||
*
|
|
||||||
* An XPath function.
|
|
||||||
* The arguments (if any) are popped out from the context stack
|
|
||||||
* and the result is pushed on the stack.
|
|
||||||
*/
|
|
||||||
|
|
||||||
typedef void (*xmlXPathFunction) (xmlXPathParserContextPtr ctxt, int nargs);
|
|
||||||
|
|
||||||
/************************************************************************
|
/************************************************************************
|
||||||
* *
|
* *
|
||||||
* Public API *
|
* Public API *
|
||||||
|
@ -327,20 +327,6 @@ XMLPUBFUN void * XMLCALL
|
|||||||
/*
|
/*
|
||||||
* Variable Lookup forwarding.
|
* Variable Lookup forwarding.
|
||||||
*/
|
*/
|
||||||
/**
|
|
||||||
* xmlXPathVariableLookupFunc:
|
|
||||||
* @ctxt: an XPath context
|
|
||||||
* @name: name of the variable
|
|
||||||
* @ns_uri: the namespace name hosting this variable
|
|
||||||
*
|
|
||||||
* Prototype for callbacks used to plug variable lookup in the XPath
|
|
||||||
* engine.
|
|
||||||
*
|
|
||||||
* Returns the XPath object value or NULL if not found.
|
|
||||||
*/
|
|
||||||
typedef xmlXPathObjectPtr (*xmlXPathVariableLookupFunc) (void *ctxt,
|
|
||||||
const xmlChar *name,
|
|
||||||
const xmlChar *ns_uri);
|
|
||||||
|
|
||||||
XMLPUBFUN void XMLCALL
|
XMLPUBFUN void XMLCALL
|
||||||
xmlXPathRegisterVariableLookup (xmlXPathContextPtr ctxt,
|
xmlXPathRegisterVariableLookup (xmlXPathContextPtr ctxt,
|
||||||
@ -350,20 +336,6 @@ XMLPUBFUN void XMLCALL
|
|||||||
/*
|
/*
|
||||||
* Function Lookup forwarding.
|
* Function Lookup forwarding.
|
||||||
*/
|
*/
|
||||||
/**
|
|
||||||
* xmlXPathFuncLookupFunc:
|
|
||||||
* @ctxt: an XPath context
|
|
||||||
* @name: name of the function
|
|
||||||
* @ns_uri: the namespace name hosting this function
|
|
||||||
*
|
|
||||||
* Prototype for callbacks used to plug function lookup in the XPath
|
|
||||||
* engine.
|
|
||||||
*
|
|
||||||
* Returns the XPath function or NULL if not found.
|
|
||||||
*/
|
|
||||||
typedef xmlXPathFunction (*xmlXPathFuncLookupFunc) (void *ctxt,
|
|
||||||
const xmlChar *name,
|
|
||||||
const xmlChar *ns_uri);
|
|
||||||
|
|
||||||
XMLPUBFUN void XMLCALL
|
XMLPUBFUN void XMLCALL
|
||||||
xmlXPathRegisterFuncLookup (xmlXPathContextPtr ctxt,
|
xmlXPathRegisterFuncLookup (xmlXPathContextPtr ctxt,
|
||||||
|
@ -3030,7 +3030,7 @@ libxml_xmlSchemaValidityWarningFunc(void *ctx, const char *msg, ...)
|
|||||||
va_end(ap);
|
va_end(ap);
|
||||||
}
|
}
|
||||||
|
|
||||||
static PyObject *
|
PyObject *
|
||||||
libxml_xmlSchemaSetValidErrors(ATTRIBUTE_UNUSED PyObject * self, PyObject * args)
|
libxml_xmlSchemaSetValidErrors(ATTRIBUTE_UNUSED PyObject * self, PyObject * args)
|
||||||
{
|
{
|
||||||
PyObject *py_retval;
|
PyObject *py_retval;
|
||||||
@ -3086,7 +3086,7 @@ libxml_xmlSchemaSetValidErrors(ATTRIBUTE_UNUSED PyObject * self, PyObject * args
|
|||||||
return(py_retval);
|
return(py_retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
static PyObject *
|
PyObject *
|
||||||
libxml_xmlSchemaFreeValidCtxt(ATTRIBUTE_UNUSED PyObject * self, PyObject * args)
|
libxml_xmlSchemaFreeValidCtxt(ATTRIBUTE_UNUSED PyObject * self, PyObject * args)
|
||||||
{
|
{
|
||||||
xmlSchemaValidCtxtPtr ctxt;
|
xmlSchemaValidCtxtPtr ctxt;
|
||||||
|
@ -233,3 +233,4 @@ PyObject * libxml_xmlSchemaParserCtxtPtrWrap(xmlSchemaParserCtxtPtr ctxt);
|
|||||||
PyObject * libxml_xmlSchemaValidCtxtPtrWrap(xmlSchemaValidCtxtPtr valid);
|
PyObject * libxml_xmlSchemaValidCtxtPtrWrap(xmlSchemaValidCtxtPtr valid);
|
||||||
#endif /* LIBXML_SCHEMAS_ENABLED */
|
#endif /* LIBXML_SCHEMAS_ENABLED */
|
||||||
PyObject * libxml_xmlErrorPtrWrap(xmlErrorPtr error);
|
PyObject * libxml_xmlErrorPtrWrap(xmlErrorPtr error);
|
||||||
|
PyObject * libxml_xmlSchemaSetValidErrors(PyObject * self, PyObject * args);
|
||||||
|
@ -92,6 +92,9 @@
|
|||||||
#ifdef LIBXML_PATTERN_ENABLED
|
#ifdef LIBXML_PATTERN_ENABLED
|
||||||
#include <libxml/pattern.h>
|
#include <libxml/pattern.h>
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef LIBXML_C14N_ENABLED
|
||||||
|
#include <libxml/c14n.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef XML_XML_DEFAULT_CATALOG
|
#ifndef XML_XML_DEFAULT_CATALOG
|
||||||
#define XML_XML_DEFAULT_CATALOG "file:///etc/xml/catalog"
|
#define XML_XML_DEFAULT_CATALOG "file:///etc/xml/catalog"
|
||||||
|
8
xpath.c
8
xpath.c
@ -2811,7 +2811,7 @@ xmlXPathRegisterFuncLookup (xmlXPathContextPtr ctxt,
|
|||||||
void *funcCtxt) {
|
void *funcCtxt) {
|
||||||
if (ctxt == NULL)
|
if (ctxt == NULL)
|
||||||
return;
|
return;
|
||||||
ctxt->funcLookupFunc = (void *) f;
|
ctxt->funcLookupFunc = f;
|
||||||
ctxt->funcLookupData = funcCtxt;
|
ctxt->funcLookupData = funcCtxt;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2834,7 +2834,7 @@ xmlXPathFunctionLookup(xmlXPathContextPtr ctxt, const xmlChar *name) {
|
|||||||
xmlXPathFunction ret;
|
xmlXPathFunction ret;
|
||||||
xmlXPathFuncLookupFunc f;
|
xmlXPathFuncLookupFunc f;
|
||||||
|
|
||||||
f = (xmlXPathFuncLookupFunc) ctxt->funcLookupFunc;
|
f = ctxt->funcLookupFunc;
|
||||||
ret = f(ctxt->funcLookupData, name, NULL);
|
ret = f(ctxt->funcLookupData, name, NULL);
|
||||||
if (ret != NULL)
|
if (ret != NULL)
|
||||||
return(ret);
|
return(ret);
|
||||||
@ -2865,7 +2865,7 @@ xmlXPathFunctionLookupNS(xmlXPathContextPtr ctxt, const xmlChar *name,
|
|||||||
xmlXPathFunction ret;
|
xmlXPathFunction ret;
|
||||||
xmlXPathFuncLookupFunc f;
|
xmlXPathFuncLookupFunc f;
|
||||||
|
|
||||||
f = (xmlXPathFuncLookupFunc) ctxt->funcLookupFunc;
|
f = ctxt->funcLookupFunc;
|
||||||
ret = f(ctxt->funcLookupData, name, ns_uri);
|
ret = f(ctxt->funcLookupData, name, ns_uri);
|
||||||
if (ret != NULL)
|
if (ret != NULL)
|
||||||
return(ret);
|
return(ret);
|
||||||
@ -2961,7 +2961,7 @@ xmlXPathRegisterVariableLookup(xmlXPathContextPtr ctxt,
|
|||||||
xmlXPathVariableLookupFunc f, void *data) {
|
xmlXPathVariableLookupFunc f, void *data) {
|
||||||
if (ctxt == NULL)
|
if (ctxt == NULL)
|
||||||
return;
|
return;
|
||||||
ctxt->varLookupFunc = (void *) f;
|
ctxt->varLookupFunc = f;
|
||||||
ctxt->varLookupData = data;
|
ctxt->varLookupData = data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user