From 651c00718a18cac14d8a68f92aa23179a2417bc9 Mon Sep 17 00:00:00 2001 From: Sterling Hughes Date: Tue, 16 Apr 2002 15:54:59 +0000 Subject: [PATCH] move xslt_error and xslt_errno down to functions, in order to 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 | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/ext/xslt/sablot.c b/ext/xslt/sablot.c index 37dac462eb..a1474fecd0 100644 --- a/ext/xslt/sablot.c +++ b/ext/xslt/sablot.c @@ -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) -- 2.40.0