summaryrefslogtreecommitdiff
path: root/ext/gettext
diff options
context:
space:
mode:
Diffstat (limited to 'ext/gettext')
-rw-r--r--ext/gettext/gettext.c16
-rw-r--r--ext/gettext/php3_gettext.h3
2 files changed, 10 insertions, 9 deletions
diff --git a/ext/gettext/gettext.c b/ext/gettext/gettext.c
index fd0b5f5e13..5aff1e32be 100644
--- a/ext/gettext/gettext.c
+++ b/ext/gettext/gettext.c
@@ -27,20 +27,20 @@
#include <libintl.h>
function_entry php3_gettext_functions[] = {
- {"textdomain", php3_textdomain, NULL},
- {"gettext", php3_gettext, NULL},
- {"_", php3_gettext, NULL},
- {"dgettext", php3_dgettext, NULL},
- {"dcgettext", php3_dcgettext, NULL},
- {"bindtextdomain", php3_bindtextdomain, NULL},
+ PHP_FE(textdomain, NULL)
+ PHP_FE(gettext, NULL)
+ PHP_FALIAS(_, gettext, NULL)
+ PHP_FE(dgettext, NULL)
+ PHP_FE(dcgettext, NULL)
+ PHP_FE(bindtextdomain, NULL)
{NULL, NULL, NULL}
};
php3_module_entry php3_gettext_module_entry = {
- "gettext", php3_gettext_functions, NULL, NULL, NULL, NULL, php3_info_gettext, STANDARD_MODULE_PROPERTIES
+ "gettext", php3_gettext_functions, NULL, NULL, NULL, NULL, PHP_MINFO(gettext), STANDARD_MODULE_PROPERTIES
};
-void php3_info_gettext(ZEND_MODULE_INFO_FUNC_ARGS)
+PHP_MINFO_FUNCTION(gettext)
{
php3_printf("GNU gettext support active.");
}
diff --git a/ext/gettext/php3_gettext.h b/ext/gettext/php3_gettext.h
index dab9b85c3b..e01d041b94 100644
--- a/ext/gettext/php3_gettext.h
+++ b/ext/gettext/php3_gettext.h
@@ -40,7 +40,8 @@
extern php3_module_entry php3_gettext_module_entry;
#define gettext_module_ptr &php3_gettext_module_entry
-void php3_info_gettext(ZEND_MODULE_INFO_FUNC_ARGS);
+PHP_MINFO_FUNCTION(gettext);
+
PHP_FUNCTION(textdomain);
PHP_FUNCTION(gettext);
PHP_FUNCTION(dgettext);