From 25c3a3a39d7aebdce95825e6af2ad8c62905b7cc Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Tue, 5 Jun 2001 13:12:10 +0000 Subject: vim-6 does folding - clean up a bunch of missing folding tags plus some misguided RINIT and RSHUTDOWN calls in a few fringe extensions --- ext/aspell/aspell.c | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) (limited to 'ext/aspell') diff --git a/ext/aspell/aspell.c b/ext/aspell/aspell.c index dac32cb259..6a5cba65cd 100644 --- a/ext/aspell/aspell.c +++ b/ext/aspell/aspell.c @@ -37,6 +37,8 @@ #include #include "ext/standard/info.h" +/* {{{ aspell_functions[] + */ function_entry aspell_functions[] = { PHP_FE(aspell_new, NULL) PHP_FE(aspell_check, NULL) @@ -44,6 +46,7 @@ function_entry aspell_functions[] = { PHP_FE(aspell_suggest, NULL) {NULL, NULL, NULL} }; +/* }}} */ static int le_aspell; @@ -51,24 +54,27 @@ zend_module_entry aspell_module_entry = { "aspell", aspell_functions, PHP_MINIT(aspell), NULL, NULL, NULL, PHP_MINFO(aspell), STANDARD_MODULE_PROPERTIES }; - #ifdef COMPILE_DL_ASPELL ZEND_GET_MODULE(aspell) #endif +/* {{{ php_aspell_close + */ static void php_aspell_close(zend_rsrc_list_entry *rsrc) { aspell *sc = (aspell *)rsrc->ptr; aspell_free(sc); } +/* }}} */ - +/* {{{ PHP_MINIT_FUNCTION + */ PHP_MINIT_FUNCTION(aspell) { le_aspell = zend_register_list_destructors_ex(php_aspell_close, NULL, "aspell", module_number); return SUCCESS; - } +/* }}} */ /* {{{ proto int aspell_new(string master [, string personal]) Load a dictionary */ @@ -97,7 +103,6 @@ PHP_FUNCTION(aspell_new) } /* }}} */ - /* {{{ proto array aspell_suggest(aspell int, string word) Return array of Suggestions */ PHP_FUNCTION(aspell_suggest) @@ -199,11 +204,22 @@ PHP_FUNCTION(aspell_check_raw) } /* }}} */ +/* {{{ PHP_MINFO_FUNCTION + */ PHP_MINFO_FUNCTION(aspell) { php_info_print_table_start(); php_info_print_table_row(2, "ASpell Support", "enabled"); php_info_print_table_end(); } +/* }}} */ #endif + +/* + * Local variables: + * tab-width: 4 + * c-basic-offset: 4 + * End: + * vim: sw=4 ts=4 tw=78 fdm=marker + */ -- cgit v1.2.1