cvs: php4 /ext/xslt sablot.c

From: Date: Tue, 16 Apr 2002 15:54:59 +0000
Subject: cvs: php4 /ext/xslt sablot.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-11168@lists.php.net to get a copy of this message
sterling Tue Apr 16 11:54:59 2002 EDT Modified files: /php4/ext/xslt sablot.c Log: 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 :) Index: php4/ext/xslt/sablot.c diff -u php4/ext/xslt/sablot.c:1.39 php4/ext/xslt/sablot.c:1.40 --- php4/ext/xslt/sablot.c:1.39 Tue Apr 16 02:37:18 2002 +++ php4/ext/xslt/sablot.c Tue Apr 16 11:54:58 2002 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: sablot.c,v 1.39 2002/04/16 06:37:18 sterling Exp $ */ +/* $Id: sablot.c,v 1.40 2002/04/16 15:54:58 sterling Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -571,6 +571,24 @@ } /* }}} */ +/* {{{ 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) @@ -606,24 +624,6 @@ } else { RETURN_FALSE; } -} -/* }}} */ - -/* {{{ 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)); } /* }}} */

« previous php.cvs (#11168) next »