felipe Wed Jul 16 18:34:56 2008 UTC
Modified files: (Branch: PHP_5_3)
/php-src/ext/pspell pspell.c
Log:
- Added arginfo
http://cvs.php.net/viewvc.cgi/php-src/ext/pspell/pspell.c?r1=1.45.2.4.2.7.2.3&r2=1.45.2.4.2.7.2.4&diff_format=u
Index: php-src/ext/pspell/pspell.c
diff -u php-src/ext/pspell/pspell.c:1.45.2.4.2.7.2.3
php-src/ext/pspell/pspell.c:1.45.2.4.2.7.2.4
--- php-src/ext/pspell/pspell.c:1.45.2.4.2.7.2.3 Fri Jun 27 02:58:12 2008
+++ php-src/ext/pspell/pspell.c Wed Jul 16 18:34:56 2008
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: pspell.c,v 1.45.2.4.2.7.2.3 2008/06/27 02:58:12 felipe Exp $ */
+/* $Id: pspell.c,v 1.45.2.4.2.7.2.4 2008/07/16 18:34:56 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[]
*/
static 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)
+ 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}
};
/* }}} */
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php