diff options
| author | Felipe Pena <felipe@php.net> | 2009-01-29 00:36:25 +0000 | 
|---|---|---|
| committer | Felipe Pena <felipe@php.net> | 2009-01-29 00:36:25 +0000 | 
| commit | 01c008c28dce298d5288b96dd8f7cf8613df9056 (patch) | |
| tree | 706e073d97095794c5c16dd7aed0c4f63b608109 /ext | |
| parent | 927f59507721a6467de0ed57be0ed42d5b25a4a8 (diff) | |
| download | php-git-01c008c28dce298d5288b96dd8f7cf8613df9056.tar.gz | |
- Added arginfo
Diffstat (limited to 'ext')
| -rwxr-xr-x | ext/enchant/enchant.c | 86 | 
1 files changed, 66 insertions, 20 deletions
| diff --git a/ext/enchant/enchant.c b/ext/enchant/enchant.c index cf239421b4..5da2517df6 100755 --- a/ext/enchant/enchant.c +++ b/ext/enchant/enchant.c @@ -22,7 +22,7 @@  #ifdef HAVE_CONFIG_H  #include "config.h"  #endif -#if PHP_WIN32 +#ifdef PHP_WIN32  #include <glib/glist.h>  #include <glib/ghash.h>  #endif @@ -64,30 +64,76 @@ static int le_enchant_dict;  /* If you declare any globals in php_enchant.h uncomment this:*/  /*ZEND_DECLARE_MODULE_GLOBALS(enchant)*/ +/* {{{ arginfo */ +ZEND_BEGIN_ARG_INFO(arginfo_enchant_broker_init, 0) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_enchant_broker_free, 0, 0, 1) +	ZEND_ARG_INFO(0, broker) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_enchant_broker_request_dict, 0, 0, 2) +	ZEND_ARG_INFO(0, broker) +	ZEND_ARG_INFO(0, tag) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_enchant_broker_request_pwl_dict, 0, 0, 2) +	ZEND_ARG_INFO(0, broker) +	ZEND_ARG_INFO(0, filename) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_enchant_broker_free_dict, 0, 0, 1) +	ZEND_ARG_INFO(0, dict) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_enchant_broker_set_ordering, 0, 0, 3) +	ZEND_ARG_INFO(0, broker) +	ZEND_ARG_INFO(0, tag) +	ZEND_ARG_INFO(0, ordering) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_enchant_dict_quick_check, 0, 0, 2) +	ZEND_ARG_INFO(0, dict) +	ZEND_ARG_INFO(0, word) +	ZEND_ARG_INFO(1, suggestions) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_enchant_dict_check, 0, 0, 2) +	ZEND_ARG_INFO(0, dict) +	ZEND_ARG_INFO(0, word) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_enchant_dict_store_replacement, 0, 0, 3) +	ZEND_ARG_INFO(0, dict) +	ZEND_ARG_INFO(0, mis) +	ZEND_ARG_INFO(0, cor) +ZEND_END_ARG_INFO() +/* }}} */ +  /* {{{ enchant_functions[]   *   * Every user visible function must have an entry in enchant_functions[].   */  function_entry enchant_functions[] = { -	PHP_FE(enchant_broker_init, NULL) -	PHP_FE(enchant_broker_free, NULL) -	PHP_FE(enchant_broker_get_error, NULL) -	PHP_FE(enchant_broker_list_dicts, NULL) -	PHP_FE(enchant_broker_request_dict,	NULL) -	PHP_FE(enchant_broker_request_pwl_dict, NULL) -	PHP_FE(enchant_broker_free_dict, NULL) -	PHP_FE(enchant_broker_dict_exists, NULL) -	PHP_FE(enchant_broker_set_ordering, NULL) -	PHP_FE(enchant_broker_describe, NULL) -	PHP_FE(enchant_dict_check, NULL) -	PHP_FE(enchant_dict_suggest, NULL) -	PHP_FE(enchant_dict_add_to_personal, NULL) -	PHP_FE(enchant_dict_add_to_session, NULL) -	PHP_FE(enchant_dict_is_in_session, NULL) -	PHP_FE(enchant_dict_store_replacement, NULL) -	PHP_FE(enchant_dict_get_error, NULL) -	PHP_FE(enchant_dict_describe, NULL) -	PHP_FE(enchant_dict_quick_check, NULL) +	PHP_FE(enchant_broker_init, 			arginfo_enchant_broker_init) +	PHP_FE(enchant_broker_free, 			arginfo_enchant_broker_free) +	PHP_FE(enchant_broker_get_error, 		arginfo_enchant_broker_free) +	PHP_FE(enchant_broker_list_dicts, 		arginfo_enchant_broker_free) +	PHP_FE(enchant_broker_request_dict,		arginfo_enchant_broker_request_dict) +	PHP_FE(enchant_broker_request_pwl_dict, arginfo_enchant_broker_request_pwl_dict) +	PHP_FE(enchant_broker_free_dict, 		arginfo_enchant_broker_free_dict) +	PHP_FE(enchant_broker_dict_exists, 		arginfo_enchant_broker_request_dict) +	PHP_FE(enchant_broker_set_ordering, 	arginfo_enchant_broker_set_ordering) +	PHP_FE(enchant_broker_describe, 		arginfo_enchant_broker_free) +	PHP_FE(enchant_dict_check, 				arginfo_enchant_dict_check) +	PHP_FE(enchant_dict_suggest, 			arginfo_enchant_dict_check) +	PHP_FE(enchant_dict_add_to_personal, 	arginfo_enchant_dict_check) +	PHP_FE(enchant_dict_add_to_session, 	arginfo_enchant_dict_check) +	PHP_FE(enchant_dict_is_in_session, 		arginfo_enchant_dict_check) +	PHP_FE(enchant_dict_store_replacement, 	arginfo_enchant_dict_store_replacement) +	PHP_FE(enchant_dict_get_error, 			arginfo_enchant_broker_free_dict) +	PHP_FE(enchant_dict_describe, 			arginfo_enchant_broker_free_dict) +	PHP_FE(enchant_dict_quick_check, 		arginfo_enchant_dict_quick_check)  	{NULL, NULL, NULL}	/* Must be the last line in enchant_functions[] */  }; | 
