mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-30 22:43:14 +03:00
the change made to xmlXPathFuncLookupFunc was incompatible roll it back
* xpath.c include/libxml/xpathInternals.h: the change made to xmlXPathFuncLookupFunc was incompatible roll it back Daniel
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
Mon Jan 21 09:55:21 CET 2002 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* xpath.c include/libxml/xpathInternals.h: the change made to
|
||||
xmlXPathFuncLookupFunc was incompatible roll it back
|
||||
|
||||
Sun Jan 20 23:03:41 CET 2002 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* SAX.c: cleanup patch from Anthony Jones
|
||||
|
@ -335,7 +335,7 @@ void xmlXPathRegisterVariableLookup (xmlXPathContextPtr ctxt,
|
||||
/*
|
||||
* Function Lookup forwarding
|
||||
*/
|
||||
typedef xmlXPathFunction xmlXPathFuncLookupFunc (void *ctxt,
|
||||
typedef xmlXPathFunction (*xmlXPathFuncLookupFunc) (void *ctxt,
|
||||
const xmlChar *name,
|
||||
const xmlChar *ns_uri);
|
||||
|
||||
|
8
xpath.c
8
xpath.c
@ -2291,9 +2291,9 @@ xmlXPathFunctionLookup(xmlXPathContextPtr ctxt, const xmlChar *name) {
|
||||
|
||||
if (ctxt->funcLookupFunc != NULL) {
|
||||
xmlXPathFunction ret;
|
||||
xmlXPathFuncLookupFunc *f;
|
||||
xmlXPathFuncLookupFunc f;
|
||||
|
||||
f = (xmlXPathFuncLookupFunc *) ctxt->funcLookupFunc;
|
||||
f = (xmlXPathFuncLookupFunc) ctxt->funcLookupFunc;
|
||||
ret = f(ctxt->funcLookupData, name, NULL);
|
||||
if (ret != NULL)
|
||||
return(ret);
|
||||
@ -2322,9 +2322,9 @@ xmlXPathFunctionLookupNS(xmlXPathContextPtr ctxt, const xmlChar *name,
|
||||
|
||||
if (ctxt->funcLookupFunc != NULL) {
|
||||
xmlXPathFunction ret;
|
||||
xmlXPathFuncLookupFunc *f;
|
||||
xmlXPathFuncLookupFunc f;
|
||||
|
||||
f = (xmlXPathFuncLookupFunc *) ctxt->funcLookupFunc;
|
||||
f = (xmlXPathFuncLookupFunc) ctxt->funcLookupFunc;
|
||||
ret = f(ctxt->funcLookupData, name, ns_uri);
|
||||
if (ret != NULL)
|
||||
return(ret);
|
||||
|
Reference in New Issue
Block a user