diff options
author | Felipe Pena <felipe@php.net> | 2008-07-16 18:34:56 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2008-07-16 18:34:56 +0000 |
commit | c91e9cc1bd635b5e189fd8df4b2c3a86dea46cfb (patch) | |
tree | b05b6064dc5b6d10bfc38e1c525bd2e21e65da5b /ext/pspell | |
parent | 6c351b544c2786f1a713cbde29e456a688bf8873 (diff) | |
download | php-git-c91e9cc1bd635b5e189fd8df4b2c3a86dea46cfb.tar.gz |
- Added arginfo
Diffstat (limited to 'ext/pspell')
-rw-r--r-- | ext/pspell/pspell.c | 161 |
1 files changed, 142 insertions, 19 deletions
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} }; /* }}} */ |