]> granicus.if.org Git - php/commitdiff
move xslt_error and xslt_errno down to functions, in order to
authorSterling Hughes <sterling@php.net>
Tue, 16 Apr 2002 15:54:59 +0000 (15:54 +0000)
committerSterling Hughes <sterling@php.net>
Tue, 16 Apr 2002 15:54:59 +0000 (15:54 +0000)
make logical room for the xslt_dom_* functions

# (xslt_dom_* will be a basic api, allowing no dom manipulation,
#  however, one of these days I'll write a message/extension that
#  handles xslt/dom/sax in a coherent manner -- just you watch :)

ext/xslt/sablot.c

index 37dac462eb49c85b502126e956ed2250623dcb01..a1474fecd0232dfdefeabf0e39ad5f6b2dce0f9f 100644 (file)
@@ -571,6 +571,24 @@ PHP_FUNCTION(xslt_sax_process)
 }
 /* }}} */
 
+/* {{{ proto void xslt_sax_free(resource processor)
+   Free the xslt processor up */
+PHP_FUNCTION(xslt_sax_free)
+{
+       zval     **processor_p;   /* Resource pointer to a php-xslt processor */
+       php_xslt  *handle;        /* A PHP-XSLT processor */
+       
+       if (ZEND_NUM_ARGS() != 1 ||
+           zend_get_parameters_ex(1, &processor_p) == FAILURE) {
+               WRONG_PARAM_COUNT;
+       }
+       ZEND_FETCH_RESOURCE(handle, php_xslt *, processor_p, -1, le_xslt_name, le_xslt);
+       
+       /* Remove the entry from the list */
+       zend_list_delete(Z_LVAL_PP(processor_p));
+}
+/* }}} */
+
 /* {{{ proto int xslt_errno(resource processor)
    Error number */
 PHP_FUNCTION(xslt_errno)
@@ -609,24 +627,6 @@ PHP_FUNCTION(xslt_error)
 }
 /* }}} */
 
-/* {{{ proto void xslt_sax_free(resource processor)
-   Free the xslt processor up */
-PHP_FUNCTION(xslt_sax_free)
-{
-       zval     **processor_p;   /* Resource pointer to a php-xslt processor */
-       php_xslt  *handle;        /* A PHP-XSLT processor */
-       
-       if (ZEND_NUM_ARGS() != 1 ||
-           zend_get_parameters_ex(1, &processor_p) == FAILURE) {
-               WRONG_PARAM_COUNT;
-       }
-       ZEND_FETCH_RESOURCE(handle, php_xslt *, processor_p, -1, le_xslt_name, le_xslt);
-       
-       /* Remove the entry from the list */
-       zend_list_delete(Z_LVAL_PP(processor_p));
-}
-/* }}} */
-
 /* {{{ free_processor()
    Free an XSLT processor */
 static void free_processor(zend_rsrc_list_entry *rsrc TSRMLS_DC)