tony2001                Sat Oct  6 21:28:50 2007 UTC

  Modified files:              (Branch: PHP_5_3)
    /php-src/ext/xsl    xsl_fe.h xsltprocessor.c 
  Log:
  MFH: fix ws & folding, nuke unused vars
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/xsl/xsl_fe.h?r1=1.8.2.1.2.1.2.2&r2=1.8.2.1.2.1.2.3&diff_format=u
Index: php-src/ext/xsl/xsl_fe.h
diff -u php-src/ext/xsl/xsl_fe.h:1.8.2.1.2.1.2.2 
php-src/ext/xsl/xsl_fe.h:1.8.2.1.2.1.2.3
--- php-src/ext/xsl/xsl_fe.h:1.8.2.1.2.1.2.2    Tue Oct  2 06:31:18 2007
+++ php-src/ext/xsl/xsl_fe.h    Sat Oct  6 21:28:50 2007
@@ -16,7 +16,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: xsl_fe.h,v 1.8.2.1.2.1.2.2 2007/10/02 06:31:18 chregu Exp $ */
+/* $Id: xsl_fe.h,v 1.8.2.1.2.1.2.3 2007/10/06 21:28:50 tony2001 Exp $ */
 
 #ifndef XSL_FE_H
 #define XSL_FE_H
@@ -35,3 +35,12 @@
 PHP_FUNCTION(xsl_xsltprocessor_register_php_functions);
 PHP_FUNCTION(xsl_xsltprocessor_set_profiling);
 #endif
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
http://cvs.php.net/viewvc.cgi/php-src/ext/xsl/xsltprocessor.c?r1=1.39.2.2.2.9.2.2&r2=1.39.2.2.2.9.2.3&diff_format=u
Index: php-src/ext/xsl/xsltprocessor.c
diff -u php-src/ext/xsl/xsltprocessor.c:1.39.2.2.2.9.2.2 
php-src/ext/xsl/xsltprocessor.c:1.39.2.2.2.9.2.3
--- php-src/ext/xsl/xsltprocessor.c:1.39.2.2.2.9.2.2    Tue Oct  2 06:31:18 2007
+++ php-src/ext/xsl/xsltprocessor.c     Sat Oct  6 21:28:50 2007
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: xsltprocessor.c,v 1.39.2.2.2.9.2.2 2007/10/02 06:31:18 chregu Exp $ */
+/* $Id: xsltprocessor.c,v 1.39.2.2.2.9.2.3 2007/10/06 21:28:50 tony2001 Exp $ 
*/
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -48,7 +48,6 @@
        {NULL, NULL, NULL}
 };
 
-/* {{{ attribute protos, not implemented yet */
 /* {{{ php_xsl_xslt_string_to_xpathexpr()
    Translates a string to a XPath Expression */
 static char *php_xsl_xslt_string_to_xpathexpr(const char *str TSRMLS_DC)
@@ -73,7 +72,7 @@
        }
        return (char *) value;
 }
-
+/* }}} */
 
 /* {{{ php_xsl_xslt_make_params()
    Translates a PHP array to a libxslt parameters array */
@@ -123,8 +122,7 @@
 }
 /* }}} */
 
-
-static void xsl_ext_function_php(xmlXPathParserContextPtr ctxt, int nargs, int 
type)
+static void xsl_ext_function_php(xmlXPathParserContextPtr ctxt, int nargs, int 
type) /* {{{ */
 {
        xsltTransformContextPtr tctxt;
        zval **args;
@@ -314,17 +312,19 @@
                efree(fci.params);
        }
 }
+/* }}} */
 
-void xsl_ext_function_string_php(xmlXPathParserContextPtr ctxt, int nargs)
+void xsl_ext_function_string_php(xmlXPathParserContextPtr ctxt, int nargs) /* 
{{{ */
 {
        xsl_ext_function_php(ctxt, nargs, 1);
 }
+/* }}} */
 
-void xsl_ext_function_object_php(xmlXPathParserContextPtr ctxt, int nargs)
+void xsl_ext_function_object_php(xmlXPathParserContextPtr ctxt, int nargs) /* 
{{{ */
 {
        xsl_ext_function_php(ctxt, nargs, 2);
 }
-
+/* }}} */
 
 /* {{{ proto void xsl_xsltprocessor_import_stylesheet(domdocument doc);
 URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#
@@ -413,8 +413,7 @@
 }
 /* }}} end xsl_xsltprocessor_import_stylesheet */
 
-
-static xmlDocPtr php_xsl_apply_stylesheet(zval *id, xsl_object *intern, 
xsltStylesheetPtr style, zval *docp TSRMLS_DC)
+static xmlDocPtr php_xsl_apply_stylesheet(zval *id, xsl_object *intern, 
xsltStylesheetPtr style, zval *docp TSRMLS_DC) /* {{{ */
 {
        xmlDocPtr newdocp;
        xmlDocPtr doc = NULL;
@@ -513,6 +512,7 @@
        return newdocp;
 
 }
+/* }}} */
 
 /* {{{ proto domdocument xsl_xsltprocessor_transform_to_doc(domnode doc);
 URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#
@@ -573,7 +573,6 @@
 }
 /* }}} end xsl_xsltprocessor_transform_to_doc */
 
-
 /* {{{ proto int xsl_xsltprocessor_transform_to_uri(domdocument doc, string 
uri);
 */
 PHP_FUNCTION(xsl_xsltprocessor_transform_to_uri)
@@ -605,7 +604,6 @@
 }
 /* }}} end xsl_xsltprocessor_transform_to_uri */
 
-
 /* {{{ proto string xsl_xsltprocessor_transform_to_xml(domdocument doc);
 */
 PHP_FUNCTION(xsl_xsltprocessor_transform_to_xml)
@@ -644,7 +642,6 @@
 }
 /* }}} end xsl_xsltprocessor_transform_to_xml */
 
-
 /* {{{ proto bool xsl_xsltprocessor_set_parameter(string namespace, mixed name 
[, string value]);
 */
 PHP_FUNCTION(xsl_xsltprocessor_set_parameter)
@@ -756,7 +753,6 @@
 
        DOM_GET_THIS(id);
        
-       
        if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() 
TSRMLS_CC, "a",  &array_value) == SUCCESS) {
                intern = (xsl_object *)zend_object_store_get_object(id 
TSRMLS_CC);
                zend_hash_internal_pointer_reset(Z_ARRVAL_P(array_value));
@@ -793,9 +789,7 @@
 /* {{{ proto bool xsl_xsltprocessor_set_profiling(string filename) */
 PHP_FUNCTION(xsl_xsltprocessor_set_profiling)
 {
- 
        zval *id;
-       zval *array_value, **entry, *new_string;
        xsl_object *intern;
        char *filename;
        int filename_len;
@@ -803,15 +797,11 @@
 
        if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() 
TSRMLS_CC, "s", &filename, &filename_len) == SUCCESS) {
                intern = (xsl_object *)zend_object_store_get_object(id 
TSRMLS_CC);
-               
                intern->profiling = estrndup(filename,filename_len);
-               
                RETURN_TRUE;
-       
        } else {
                WRONG_PARAM_COUNT;
        }
-       
 }
 /* }}} end xsl_xsltprocessor_set_profiling */
 
@@ -827,3 +817,11 @@
 }
 /* }}} end xsl_xsltprocessor_has_exslt_support(); */
 
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to