cvs: php-src /ext/pspell pspell.c
| From: | Felipe Pena | Date: | Wed, 16 Jul 2008 18:35:41 +0000 |
| Subject: | cvs: php-src /ext/pspell pspell.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-51181@lists.php.net to get a copy of this message | ||
felipe Wed Jul 16 18:35:41 2008 UTC
Modified files:
/php-src/ext/pspell pspell.c
Log:
- MFB: Added arginfo
http://cvs.php.net/viewvc.cgi/php-src/ext/pspell/pspell.c?r1=1.60&r2=1.61&diff_format=u
Index: php-src/ext/pspell/pspell.c
diff -u php-src/ext/pspell/pspell.c:1.60 php-src/ext/pspell/pspell.c:1.61
--- php-src/ext/pspell/pspell.c:1.60 Mon Dec 31 07:12:13 2007
+++ php-src/ext/pspell/pspell.c Wed Jul 16 18:35:41 2008
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: pspell.c,v 1.60 2007/12/31 07:12:13 sebastian Exp $ */
+/* $Id: pspell.c,v 1.61 2008/07/16 18:35:41 felipe Exp $ */
#define IS_EXT_MODULE
@@ -72,28 +72,151 @@
static PHP_FUNCTION(pspell_config_repl);
static PHP_FUNCTION(pspell_config_save_repl);
+/* {{{ arginfo */
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_pspell_new, 0, 0, 1)
+ ZEND_ARG_INFO(0, language)
+ ZEND_ARG_INFO(0, spelling)
+ ZEND_ARG_INFO(0, jargon)
+ ZEND_ARG_INFO(0, encoding)
+ ZEND_ARG_INFO(0, mode)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_pspell_new_personal, 0, 0, 2)
+ ZEND_ARG_INFO(0, personal)
+ ZEND_ARG_INFO(0, language)
+ ZEND_ARG_INFO(0, spelling)
+ ZEND_ARG_INFO(0, jargon)
+ ZEND_ARG_INFO(0, encoding)
+ ZEND_ARG_INFO(0, mode)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_pspell_new_config, 0, 0, 1)
+ ZEND_ARG_INFO(0, config)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_pspell_check, 0, 0, 2)
+ ZEND_ARG_INFO(0, pspell)
+ ZEND_ARG_INFO(0, word)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_pspell_suggest, 0, 0, 2)
+ ZEND_ARG_INFO(0, pspell)
+ ZEND_ARG_INFO(0, word)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_pspell_store_replacement, 0, 0, 3)
+ ZEND_ARG_INFO(0, pspell)
+ ZEND_ARG_INFO(0, misspell)
+ ZEND_ARG_INFO(0, correct)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_pspell_add_to_personal, 0, 0, 2)
+ ZEND_ARG_INFO(0, pspell)
+ ZEND_ARG_INFO(0, word)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_pspell_add_to_session, 0, 0, 2)
+ ZEND_ARG_INFO(0, pspell)
+ ZEND_ARG_INFO(0, word)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_pspell_clear_session, 0, 0, 1)
+ ZEND_ARG_INFO(0, pspell)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_pspell_save_wordlist, 0, 0, 1)
+ ZEND_ARG_INFO(0, pspell)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_pspell_config_create, 0, 0, 1)
+ ZEND_ARG_INFO(0, language)
+ ZEND_ARG_INFO(0, spelling)
+ ZEND_ARG_INFO(0, jargon)
+ ZEND_ARG_INFO(0, encoding)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_pspell_config_runtogether, 0, 0, 2)
+ ZEND_ARG_INFO(0, conf)
+ ZEND_ARG_INFO(0, runtogether)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_pspell_config_mode, 0, 0, 2)
+ ZEND_ARG_INFO(0, conf)
+ ZEND_ARG_INFO(0, mode)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_pspell_config_ignore, 0, 0, 2)
+ ZEND_ARG_INFO(0, conf)
+ ZEND_ARG_INFO(0, ignore)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_pspell_config_personal, 0, 0, 2)
+ ZEND_ARG_INFO(0, conf)
+ ZEND_ARG_INFO(0, personal)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_pspell_config_dict_dir, 0, 0, 2)
+ ZEND_ARG_INFO(0, conf)
+ ZEND_ARG_INFO(0, directory)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_pspell_config_data_dir, 0, 0, 2)
+ ZEND_ARG_INFO(0, conf)
+ ZEND_ARG_INFO(0, directory)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_pspell_config_repl, 0, 0, 2)
+ ZEND_ARG_INFO(0, conf)
+ ZEND_ARG_INFO(0, repl)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_pspell_config_save_repl, 0, 0, 2)
+ ZEND_ARG_INFO(0, conf)
+ ZEND_ARG_INFO(0, save)
+ZEND_END_ARG_INFO()
+/* }}} */
+
/* {{{ pspell_functions[]
*/
-const zend_function_entry pspell_functions[] = {
- PHP_FE(pspell_new, NULL)
- PHP_FE(pspell_new_personal, NULL)
- PHP_FE(pspell_new_config, NULL)
- PHP_FE(pspell_check, NULL)
- PHP_FE(pspell_suggest, NULL)
- PHP_FE(pspell_store_replacement, NULL)
- PHP_FE(pspell_add_to_personal, NULL)
- PHP_FE(pspell_add_to_session, NULL)
- PHP_FE(pspell_clear_session, NULL)
- PHP_FE(pspell_save_wordlist, NULL)
- PHP_FE(pspell_config_create, NULL)
- PHP_FE(pspell_config_runtogether, NULL)
- PHP_FE(pspell_config_mode, NULL)
- PHP_FE(pspell_config_ignore, NULL)
- PHP_FE(pspell_config_personal, NULL)
- PHP_FE(pspell_config_dict_dir, NULL)
- PHP_FE(pspell_config_data_dir, NULL)
- PHP_FE(pspell_config_repl, NULL)
- PHP_FE(pspell_config_save_repl, NULL)
+static const zend_function_entry pspell_functions[] = {
+ PHP_FE(pspell_new, arginfo_pspell_new)
+ PHP_FE(pspell_new_personal, arginfo_pspell_new_personal)
+ PHP_FE(pspell_new_config, arginfo_pspell_new_config)
+ PHP_FE(pspell_check, arginfo_pspell_check)
+ PHP_FE(pspell_suggest, arginfo_pspell_suggest)
+ PHP_FE(pspell_store_replacement, arginfo_pspell_store_replacement)
+ PHP_FE(pspell_add_to_personal, arginfo_pspell_add_to_personal)
+ PHP_FE(pspell_add_to_session, arginfo_pspell_add_to_session)
+ PHP_FE(pspell_clear_session, arginfo_pspell_clear_session)
+ PHP_FE(pspell_save_wordlist, arginfo_pspell_save_wordlist)
+ PHP_FE(pspell_config_create, arginfo_pspell_config_create)
+ PHP_FE(pspell_config_runtogether, arginfo_pspell_config_runtogether)
+ PHP_FE(pspell_config_mode, arginfo_pspell_config_mode)
+ PHP_FE(pspell_config_ignore, arginfo_pspell_config_ignore)
+ PHP_FE(pspell_config_personal, arginfo_pspell_config_personal)
+ PHP_FE(pspell_config_dict_dir, arginfo_pspell_config_dict_dir)
+ PHP_FE(pspell_config_data_dir, arginfo_pspell_config_data_dir)
+ PHP_FE(pspell_config_repl, arginfo_pspell_config_repl)
+ PHP_FE(pspell_config_save_repl, arginfo_pspell_config_save_repl)
{NULL, NULL, NULL}
};
/* }}} */