com php-src: Refactor gettext: ext/gettext/gettext.c
| From: | Dmitry Stogov | Date: | Mon, 05 May 2014 06:32:32 +0000 |
| Subject: | com php-src: Refactor gettext: ext/gettext/gettext.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-77247@lists.php.net to get a copy of this message | ||
Commit: f7ee17d9f75ffd038dbbc6861e853b4ed17e91d4
Author: Xinchen Hui <laruence@gmail.com> Mon, 5 May 2014 14:32:32 +0800
Parents: fee9d4cafd02cb37177179b216fb21baf7041d30
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f7ee17d9f75ffd038dbbc6861e853b4ed17e91d4
Log:
Refactor gettext
Changed paths:
M ext/gettext/gettext.c
Diff:
diff --git a/ext/gettext/gettext.c b/ext/gettext/gettext.c
index 732ef54..1e07000 100644
--- a/ext/gettext/gettext.c
+++ b/ext/gettext/gettext.c
@@ -178,7 +178,7 @@ PHP_NAMED_FUNCTION(zif_textdomain)
retval = textdomain(domain_name);
- RETURN_STRING(retval, 1);
+ RETURN_STRING(retval);
}
/* }}} */
@@ -196,7 +196,7 @@ PHP_NAMED_FUNCTION(zif_gettext)
PHP_GETTEXT_LENGTH_CHECK("msgid", msgid_len)
msgstr = gettext(msgid);
- RETURN_STRING(msgstr, 1);
+ RETURN_STRING(msgstr);
}
/* }}} */
@@ -216,7 +216,7 @@ PHP_NAMED_FUNCTION(zif_dgettext)
msgstr = dgettext(domain, msgid);
- RETURN_STRING(msgstr, 1);
+ RETURN_STRING(msgstr);
}
/* }}} */
@@ -237,7 +237,7 @@ PHP_NAMED_FUNCTION(zif_dcgettext)
msgstr = dcgettext(domain, msgid, category);
- RETURN_STRING(msgstr, 1);
+ RETURN_STRING(msgstr);
}
/* }}} */
@@ -270,7 +270,7 @@ PHP_NAMED_FUNCTION(zif_bindtextdomain)
retval = bindtextdomain(domain, dir_name);
- RETURN_STRING(retval, 1);
+ RETURN_STRING(retval);
}
/* }}} */
@@ -292,7 +292,7 @@ PHP_NAMED_FUNCTION(zif_ngettext)
msgstr = ngettext(msgid1, msgid2, count);
if (msgstr) {
- RETVAL_STRING(msgstr, 1);
+ RETVAL_STRING(msgstr);
}
}
/* }}} */
@@ -318,7 +318,7 @@ PHP_NAMED_FUNCTION(zif_dngettext)
msgstr = dngettext(domain, msgid1, msgid2, count);
if (msgstr) {
- RETVAL_STRING(msgstr, 1);
+ RETVAL_STRING(msgstr);
}
}
/* }}} */
@@ -347,7 +347,7 @@ PHP_NAMED_FUNCTION(zif_dcngettext)
msgstr = dcngettext(domain, msgid1, msgid2, count, category);
if (msgstr) {
- RETVAL_STRING(msgstr, 1);
+ RETVAL_STRING(msgstr);
}
}
/* }}} */
@@ -373,7 +373,7 @@ PHP_NAMED_FUNCTION(zif_bind_textdomain_codeset)
if (!retval) {
RETURN_FALSE;
}
- RETURN_STRING(retval, 1);
+ RETURN_STRING(retval);
}
/* }}} */
#endif