[PHP4BETA] CVS update: php4/ext/gettext

From: Date: Fri, 21 May 1999 10:05:52 +0000
Subject: [PHP4BETA] CVS update: php4/ext/gettext
Groups: php.version4 
Request: Send a blank email to php-version4+get-945@lists.php.net to get a copy of this message
Date: Friday May 21, 1999 @ 6:05 Author: sas Update of /repository/php4/ext/gettext In directory php:/tmp/cvs-serv14196/ext/gettext Modified Files: gettext.c php3_gettext.h Log Message: - run ext sources through conv_proto - add necessary phpext_*_ptr Index: php4/ext/gettext/gettext.c diff -u php4/ext/gettext/gettext.c:1.3 php4/ext/gettext/gettext.c:1.4 --- php4/ext/gettext/gettext.c:1.3 Fri May 21 04:20:11 1999 +++ php4/ext/gettext/gettext.c Fri May 21 06:05:51 1999 @@ -27,7 +27,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: gettext.c,v 1.3 1999/05/21 08:20:11 sas Exp $ */ +/* $Id: gettext.c,v 1.4 1999/05/21 10:05:51 sas Exp $ */ #include <stdio.h> #include "php.h" @@ -56,7 +56,7 @@ php3_printf("GNU gettext support active."); } -void php3_textdomain(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(textdomain) { pval *domain; char *domain_name, *retval; @@ -79,7 +79,7 @@ RETURN_STRING(retval, 1); } -void php3_gettext(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(gettext) { pval *msgid; char *msgstr; @@ -94,7 +94,7 @@ RETURN_STRING(msgstr, 1); } -void php3_dgettext(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(dgettext) { pval *domain_name, *msgid; char *msgstr; @@ -112,7 +112,7 @@ RETURN_STRING(msgstr, 1); } -void php3_dcgettext(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(dcgettext) { pval *domain_name, *msgid, *category; char *msgstr; @@ -133,7 +133,7 @@ RETURN_STRING(msgstr, 1); } -void php3_bindtextdomain(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(bindtextdomain) { pval *domain_name, *dir; char *retval, *dir_name; Index: php4/ext/gettext/php3_gettext.h diff -u php4/ext/gettext/php3_gettext.h:1.3 php4/ext/gettext/php3_gettext.h:1.4 --- php4/ext/gettext/php3_gettext.h:1.3 Fri May 21 04:20:11 1999 +++ php4/ext/gettext/php3_gettext.h Fri May 21 06:05:52 1999 @@ -27,7 +27,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php3_gettext.h,v 1.3 1999/05/21 08:20:11 sas Exp $ */ +/* $Id: php3_gettext.h,v 1.4 1999/05/21 10:05:52 sas Exp $ */ #ifndef _GETTEXT_H #define _GETTEXT_H @@ -40,12 +40,12 @@ extern php3_module_entry php3_gettext_module_entry; #define gettext_module_ptr &php3_gettext_module_entry -extern void php3_info_gettext(ZEND_MODULE_INFO_FUNC_ARGS); -extern void php3_textdomain(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_gettext(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_dgettext(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_dcgettext(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_bindtextdomain(INTERNAL_FUNCTION_PARAMETERS); +void php3_info_gettext(ZEND_MODULE_INFO_FUNC_ARGS); +PHP_FUNCTION(textdomain); +PHP_FUNCTION(gettext); +PHP_FUNCTION(dgettext); +PHP_FUNCTION(dcgettext); +PHP_FUNCTION(bindtextdomain); #else #define gettext_module_ptr NULL -- PHP 4 Beta

« previous php.version4 (#945) next »