From: Felipe Pena Date: Wed, 16 Jul 2008 18:34:56 +0000 (+0000) Subject: - Added arginfo X-Git-Tag: php-5.3.0alpha1~315 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c91e9cc1bd635b5e189fd8df4b2c3a86dea46cfb;p=php - Added arginfo --- diff --git a/ext/pspell/pspell.c b/ext/pspell/pspell.c index cb8455c6c3..40fddd8797 100644 --- a/ext/pspell/pspell.c +++ b/ext/pspell/pspell.c @@ -72,28 +72,151 @@ static PHP_FUNCTION(pspell_config_data_dir); 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} }; /* }}} */