1
0
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:
Daniel Veillard
2002-01-21 08:56:29 +00:00
parent 963d2ae415
commit 99e55ebe94
3 changed files with 10 additions and 5 deletions

View File

@ -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> Sun Jan 20 23:03:41 CET 2002 Daniel Veillard <daniel@veillard.com>
* SAX.c: cleanup patch from Anthony Jones * SAX.c: cleanup patch from Anthony Jones

View File

@ -335,7 +335,7 @@ void xmlXPathRegisterVariableLookup (xmlXPathContextPtr ctxt,
/* /*
* Function Lookup forwarding * Function Lookup forwarding
*/ */
typedef xmlXPathFunction xmlXPathFuncLookupFunc (void *ctxt, typedef xmlXPathFunction (*xmlXPathFuncLookupFunc) (void *ctxt,
const xmlChar *name, const xmlChar *name,
const xmlChar *ns_uri); const xmlChar *ns_uri);

View File

@ -2291,9 +2291,9 @@ xmlXPathFunctionLookup(xmlXPathContextPtr ctxt, const xmlChar *name) {
if (ctxt->funcLookupFunc != NULL) { if (ctxt->funcLookupFunc != NULL) {
xmlXPathFunction ret; xmlXPathFunction ret;
xmlXPathFuncLookupFunc *f; xmlXPathFuncLookupFunc f;
f = (xmlXPathFuncLookupFunc *) ctxt->funcLookupFunc; f = (xmlXPathFuncLookupFunc) ctxt->funcLookupFunc;
ret = f(ctxt->funcLookupData, name, NULL); ret = f(ctxt->funcLookupData, name, NULL);
if (ret != NULL) if (ret != NULL)
return(ret); return(ret);
@ -2322,9 +2322,9 @@ xmlXPathFunctionLookupNS(xmlXPathContextPtr ctxt, const xmlChar *name,
if (ctxt->funcLookupFunc != NULL) { if (ctxt->funcLookupFunc != NULL) {
xmlXPathFunction ret; xmlXPathFunction ret;
xmlXPathFuncLookupFunc *f; xmlXPathFuncLookupFunc f;
f = (xmlXPathFuncLookupFunc *) ctxt->funcLookupFunc; f = (xmlXPathFuncLookupFunc) 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);