aboutsummaryrefslogtreecommitdiffstats
path: root/xpath.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2002-01-20 22:08:18 +0000
committerDaniel Veillard <veillard@src.gnome.org>2002-01-20 22:08:18 +0000
commit963d2ae41574066f9b44bcae610dd280c1e57dd8 (patch)
tree9a561b726bed8272bfdaf73908b50f8d2e8eee0d /xpath.c
parent0f5f162eeb67f4284a1f9e26613caad22ee9f185 (diff)
downloadandroid_external_libxml2-963d2ae41574066f9b44bcae610dd280c1e57dd8.tar.gz
android_external_libxml2-963d2ae41574066f9b44bcae610dd280c1e57dd8.tar.bz2
android_external_libxml2-963d2ae41574066f9b44bcae610dd280c1e57dd8.zip
cleanup patch from Anthony Jones fix the headers to avoid in make scan
* SAX.c: cleanup patch from Anthony Jones * doc/Makefile.am: fix the headers to avoid in make scan * parserInternals.c xpath.c include/libxml/*.h: cleanup of the includes, * vs Ptr and general cleanup * parsedecl.py: first version of a script to extract the module interfaces, the goal will be to provide .decl or XML specification of the interfaces to build wrappers. Daniel
Diffstat (limited to 'xpath.c')
-rw-r--r--xpath.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/xpath.c b/xpath.c
index 8e3adb67..9b07ce63 100644
--- a/xpath.c
+++ b/xpath.c
@@ -2291,9 +2291,10 @@ xmlXPathFunctionLookup(xmlXPathContextPtr ctxt, const xmlChar *name) {
if (ctxt->funcLookupFunc != NULL) {
xmlXPathFunction ret;
+ xmlXPathFuncLookupFunc *f;
- ret = ((xmlXPathFuncLookupFunc) ctxt->funcLookupFunc)
- (ctxt->funcLookupData, name, NULL);
+ f = (xmlXPathFuncLookupFunc *) ctxt->funcLookupFunc;
+ ret = f(ctxt->funcLookupData, name, NULL);
if (ret != NULL)
return(ret);
}
@@ -2321,9 +2322,10 @@ xmlXPathFunctionLookupNS(xmlXPathContextPtr ctxt, const xmlChar *name,
if (ctxt->funcLookupFunc != NULL) {
xmlXPathFunction ret;
+ xmlXPathFuncLookupFunc *f;
- ret = ((xmlXPathFuncLookupFunc) ctxt->funcLookupFunc)
- (ctxt->funcLookupData, name, ns_uri);
+ f = (xmlXPathFuncLookupFunc *) ctxt->funcLookupFunc;
+ ret = f(ctxt->funcLookupData, name, ns_uri);
if (ret != NULL)
return(ret);
}