From: Ilya M. <m_...@us...> - 2003-03-20 09:02:36
|
Update of /cvsroot/perl-xml/XML-LibXML-XPathContext In directory sc8-pr-cvs1:/tmp/cvs-serv9727 Modified Files: XPathContext.xs Log Message: Fix indentation Index: XPathContext.xs =================================================================== RCS file: /cvsroot/perl-xml/XML-LibXML-XPathContext/XPathContext.xs,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- XPathContext.xs 18 Mar 2003 08:44:12 -0000 1.9 +++ XPathContext.xs 20 Mar 2003 09:02:27 -0000 1.10 @@ -600,9 +600,9 @@ croak( "missing xpath context" ); } if ( SvROK(lookup_func) && SvTYPE(SvRV(lookup_func)) == SVt_PVCV ) { - pfdr = newRV_inc((SV*) newAV()); - av_push((AV *)SvRV(pfdr), SvREFCNT_inc(lookup_func)); - av_push((AV *)SvRV(pfdr), SvREFCNT_inc(lookup_data)); + pfdr = newRV_inc((SV*) newAV()); + av_push((AV *)SvRV(pfdr), SvREFCNT_inc(lookup_func)); + av_push((AV *)SvRV(pfdr), SvREFCNT_inc(lookup_data)); } else { croak( "1st argument is not a CODE reference" ); } @@ -667,12 +667,12 @@ } PPCODE: if (SvOK(uri)) { - /* warn("Registering function with NS '%s' (uri: %s)\n", name, uri); */ - xmlXPathRegisterFuncNS(ctxt, name, SvPV(uri, len), LibXML_generic_extension_function); - } else { - /* warn("Registering function '%s'\n", name); */ - xmlXPathRegisterFunc(ctxt, name, LibXML_generic_extension_function); - } + /* warn("Registering function with NS '%s' (uri: %s)\n", name, uri); */ + xmlXPathRegisterFuncNS(ctxt, name, SvPV(uri, len), LibXML_generic_extension_function); + } else { + /* warn("Registering function '%s'\n", name); */ + xmlXPathRegisterFunc(ctxt, name, LibXML_generic_extension_function); + } void _findnodes( pxpath_context, perl_xpath ) |