summaryrefslogtreecommitdiff
path: root/ext/xslt/sablot.c
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2001-06-05 13:12:10 +0000
committerRasmus Lerdorf <rasmus@php.net>2001-06-05 13:12:10 +0000
commit25c3a3a39d7aebdce95825e6af2ad8c62905b7cc (patch)
tree4d8f1ff9644c880e3b7a63a361a0db2280d8058f /ext/xslt/sablot.c
parent4efe6f7e6b53496fb1c4f6990b3ad0771bd9be67 (diff)
downloadphp-git-25c3a3a39d7aebdce95825e6af2ad8c62905b7cc.tar.gz
vim-6 does folding - clean up a bunch of missing folding tags plus
some misguided RINIT and RSHUTDOWN calls in a few fringe extensions
Diffstat (limited to 'ext/xslt/sablot.c')
-rw-r--r--ext/xslt/sablot.c22
1 files changed, 18 insertions, 4 deletions
diff --git a/ext/xslt/sablot.c b/ext/xslt/sablot.c
index d5b50d4227..340e3d39f4 100644
--- a/ext/xslt/sablot.c
+++ b/ext/xslt/sablot.c
@@ -16,6 +16,7 @@
+----------------------------------------------------------------------+
*/
+/* $Id$ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -70,6 +71,8 @@ static MH_ERROR error_print(void *, SablotHandle, MH_ERROR, MH_LEVEL, char **);
#define le_xslt_name "XSLT Processor"
static int le_xslt;
+/* {{{ xslt_functions[]
+ */
function_entry xslt_functions[] = {
PHP_FE(xslt_create, NULL)
PHP_FE(xslt_set_sax_handlers, NULL)
@@ -87,7 +90,10 @@ function_entry xslt_functions[] = {
PHP_FE(xslt_errno, NULL)
PHP_FE(xslt_free, NULL)
};
+/* }}} */
+/* {{{ xslt_module_entry
+ */
zend_module_entry xslt_module_entry = {
"xslt",
xslt_functions,
@@ -98,12 +104,14 @@ zend_module_entry xslt_module_entry = {
PHP_MINFO(xslt),
STANDARD_MODULE_PROPERTIES
};
+/* }}} */
#ifdef COMPILE_DL_XSLT
ZEND_GET_MODULE(xslt)
#endif
-/* A structure containing the sax handlers, automatically
+/* {{{ handler structs
+ A structure containing the sax handlers, automatically
registered whether the user defines them or not */
static SAXHandler sax_handlers =
{
@@ -134,21 +142,27 @@ static SchemeHandler scheme_handler = {
scheme_put,
scheme_close
};
+/* }}} */
-
+/* {{{ PHP_MINIT_FUNCTION
+ */
PHP_MINIT_FUNCTION(xslt)
{
le_xslt = zend_register_list_destructors_ex(free_processor, NULL, le_xslt_name, module_number);
return SUCCESS;
}
+/* }}} */
+/* {{{ PHP_MINFO_FUNCTION
+ */
PHP_MINFO_FUNCTION(xslt)
{
php_info_print_table_start();
php_info_print_table_header(2, "XSLT support", "enabled");
php_info_print_table_end();
}
+/* }}} */
/* {{{ proto resource xslt_create(void)
Create a new XSLT processor */
@@ -435,7 +449,6 @@ PHP_FUNCTION(xslt_set_log)
}
/* }}} */
-
/* {{{ proto string xslt_process(resource processor, string xml, string xslt[, mixed result[, array args[, array params]]])
Perform the xslt transformation */
PHP_FUNCTION(xslt_process)
@@ -636,7 +649,6 @@ static void free_processor(zend_rsrc_list_entry *rsrc)
}
/* }}} */
-
/* {{{ register_sax_handler_pair()
Register a pair of sax handlers */
static void register_sax_handler_pair(zval *handler1, zval *handler2, zval **handler)
@@ -1014,6 +1026,7 @@ static SAX_RETURN sax_endelement(void *ctx, const char *name)
/* Cleanup */
zval_ptr_dtor(&retval);
}
+/* }}} */
/* {{{ sax_startnamespace()
Called at the beginning of the parsing of a new namespace */
@@ -1531,4 +1544,5 @@ static MH_ERROR error_print(void *user_data, SablotHandle proc, MH_ERROR code, M
* tab-width: 4
* c-basic-offset: 4
* End:
+ * vim: sw=4 ts=4 tw=78 fdm=marker
*/