From df63bcddda8849c2ec99e0af2901b4bccd075f2a Mon Sep 17 00:00:00 2001 From: Christian Stocker Date: Sat, 29 Nov 2003 13:31:51 +0000 Subject: [PATCH] follow coding standards. --- ext/xsl/php_xsl.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/ext/xsl/php_xsl.c b/ext/xsl/php_xsl.c index 49af31417d2..34c8bd8f765 100644 --- a/ext/xsl/php_xsl.c +++ b/ext/xsl/php_xsl.c @@ -262,8 +262,7 @@ static void xsl_ext_function_php(xmlXPathParserContextPtr ctxt, int nargs, int t obj = (dom_object *)zend_object_store_get_object(retval TSRMLS_CC); nodep = dom_object_get_node(obj); valuePush(ctxt, xmlXPathNewNodeSet(nodep)); - } - else if (retval->type == IS_BOOL) { + } else if (retval->type == IS_BOOL) { valuePush(ctxt, xmlXPathNewBoolean(retval->value.lval)); } else { convert_to_string_ex(&retval); @@ -278,14 +277,12 @@ static void xsl_ext_function_php(xmlXPathParserContextPtr ctxt, int nargs, int t efree(args); } -static void -xsl_ext_function_string_php(xmlXPathParserContextPtr ctxt, int nargs) +static void xsl_ext_function_string_php(xmlXPathParserContextPtr ctxt, int nargs) { xsl_ext_function_php(ctxt, nargs, 1); } -static void -xsl_ext_function_object_php(xmlXPathParserContextPtr ctxt, int nargs) +static void xsl_ext_function_object_php(xmlXPathParserContextPtr ctxt, int nargs) { xsl_ext_function_php(ctxt, nargs, 2); } @@ -369,7 +366,6 @@ PHP_MSHUTDOWN_FUNCTION(xsl) UNREGISTER_INI_ENTRIES(); */ xsltCleanupGlobals(); - //xmlMemoryDump(); return SUCCESS; }