search for: v2v_xml_xpath_register_ns

Displaying 4 results from an estimated 4 matches for "v2v_xml_xpath_register_ns".

2014 Aug 26
3
Segmentation fault when trying to add binding
...AMLlocal..., Following is the patch: =================================================================================== diff --git a/v2v/xml-c.c b/v2v/xml-c.c index 4c9bc77..a917c24 100644 --- a/v2v/xml-c.c +++ b/v2v/xml-c.c @@ -141,6 +141,16 @@ v2v_xml_xpath_new_context (value docv) } value +v2v_xml_xpath_register_ns (value prefix, value uri, value xpathctx) +{ + CAMLparam3 (prefix, uri, xpathctx); + CAMLlocal1 (retval); + retval = xmlXPathRegisterNs (BAD_CAST String_val (prefix), BAD_CAST String_val (uri), xpathctx); + + CAMLreturn (retval); +} + +value v2v_xml_xpath_eval_expression (value xpathctxv, valu...
2015 Jun 25
0
[PATCH v2] v2v: Free XML objects in the correct order.
...&xpathctx_custom_operations, + xpathctxv = caml_alloc_custom (&xpathctx_ptr_custom_operations, sizeof (xmlXPathContextPtr), 0, 1); - Xpathctx_val (xpathctxv) = xpathctx; + Xpathctx_ptr_val (xpathctxv) = xpathctx; CAMLreturn (xpathctxv); } value -v2v_xml_xpath_register_ns (value xpathctxv, value prefix, value uri) +v2v_xml_xpathctx_ptr_register_ns (value xpathctxv, value prefix, value uri) { CAMLparam3 (xpathctxv, prefix, uri); xmlXPathContextPtr xpathctx; int r; - xpathctx = Xpathctx_val (xpathctxv); + xpathctx = Xpathctx_ptr_val (xpathctxv); r = x...
2015 Jun 25
0
[PATCH] v2v: Free XML objects in the correct order.
...&xpathctx_custom_operations, + xpathctxv = caml_alloc_custom (&xpathctx_ptr_custom_operations, sizeof (xmlXPathContextPtr), 0, 1); - Xpathctx_val (xpathctxv) = xpathctx; + Xpathctx_ptr_val (xpathctxv) = xpathctx; CAMLreturn (xpathctxv); } value -v2v_xml_xpath_register_ns (value xpathctxv, value prefix, value uri) +v2v_xml_xpathctx_ptr_register_ns (value xpathctxv, value prefix, value uri) { CAMLparam3 (xpathctxv, prefix, uri); xmlXPathContextPtr xpathctx; int r; - xpathctx = Xpathctx_val (xpathctxv); + xpathctx = Xpathctx_ptr_val (xpathctxv); r = x...
2015 Jun 25
2
[PATCH v2] v2v: Free XML objects in the correct order.
In version 2: - No substantial change, I just tidied up the code a bit. - Removed one case where whitespace changes had crept in. Rich.