felipe Thu Jan 29 00:37:16 2009 UTC
Modified files: (Branch: PHP_5_3)
/php-src/ext/enchant enchant.c
Log:
- MFH: Added arginfo
http://cvs.php.net/viewvc.cgi/php-src/ext/enchant/enchant.c?r1=1.19.2.1&r2=1.19.2.2&diff_format=u
Index: php-src/ext/enchant/enchant.c
diff -u php-src/ext/enchant/enchant.c:1.19.2.1
php-src/ext/enchant/enchant.c:1.19.2.2
--- php-src/ext/enchant/enchant.c:1.19.2.1 Thu Jan 29 00:15:48 2009
+++ php-src/ext/enchant/enchant.c Thu Jan 29 00:37:16 2009
@@ -16,7 +16,7 @@
| Ilia Alshanetsky <[email protected]> |
+----------------------------------------------------------------------+
- $Id: enchant.c,v 1.19.2.1 2009/01/29 00:15:48 felipe Exp $
+ $Id: enchant.c,v 1.19.2.2 2009/01/29 00:37:16 felipe Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -64,30 +64,76 @@
/* 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[]
*/
};
@@ -263,7 +309,7 @@
php_info_print_table_start();
php_info_print_table_header(2, "enchant support", "enabled");
php_info_print_table_row(2, "Version", PHP_ENCHANT_VERSION);
- php_info_print_table_row(2, "Revision", "$Revision: 1.19.2.1 $");
+ php_info_print_table_row(2, "Revision", "$Revision: 1.19.2.2 $");
php_info_print_table_end();
php_info_print_table_start();
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php