pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/php4/patches g/c, gettext extension module is not ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b56f825f3e61
branches:  trunk
changeset: 468408:b56f825f3e61
user:      jdolecek <jdolecek%pkgsrc.org@localhost>
date:      Fri Feb 13 20:37:27 2004 +0000

description:
g/c, gettext extension module is not built into base php

diffstat:

 www/php4/patches/patch-aj |  48 -----------------------------------------------
 1 files changed, 0 insertions(+), 48 deletions(-)

diffs (52 lines):

diff -r efe778c1e4e0 -r b56f825f3e61 www/php4/patches/patch-aj
--- a/www/php4/patches/patch-aj Fri Feb 13 19:41:05 2004 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,48 +0,0 @@
-$NetBSD: patch-aj,v 1.6 2003/11/08 06:58:10 jdolecek Exp $
-
---- ext/gettext/gettext.c.orig 2003-09-24 04:08:48.000000000 +0200
-+++ ext/gettext/gettext.c      2003-11-07 21:47:25.000000000 +0100
-@@ -31,6 +31,11 @@
- #include "ext/standard/info.h"
- #include "php_gettext.h"
- 
-+#define CHECK(a) if (a == NULL) {                                                                             \
-+              fprintf(stderr, "%s, %d: NULL value\n", __FILE__, __LINE__);    \
-+              a = "";                                                                                                                 \
-+}
-+
- /* {{{ php_gettext_functions[]
-  */
- function_entry php_gettext_functions[] = {
-@@ -103,6 +108,7 @@
- 
-       retval = textdomain(domain_name);
- 
-+      CHECK(retval);
-       RETURN_STRING(retval, 1);
- }
- /* }}} */
-@@ -140,6 +146,7 @@
- 
-       msgstr = dgettext(Z_STRVAL_PP(domain_name), Z_STRVAL_PP(msgid));
- 
-+      CHECK(msgstr);
-       RETURN_STRING(msgstr, 1);
- }
- /* }}} */
-@@ -160,6 +167,7 @@
- 
-       msgstr = dcgettext(Z_STRVAL_PP(domain_name), Z_STRVAL_PP(msgid), Z_LVAL_PP(category));
- 
-+      CHECK(msgstr);
-       RETURN_STRING(msgstr, 1);
- }
- /* }}} */
-@@ -190,6 +198,7 @@
- 
-       retval = bindtextdomain(Z_STRVAL_PP(domain_name), dir_name);
- 
-+      CHECK(retval);
-       RETURN_STRING(retval, 1);
- }
- /* }}} */



Home | Main Index | Thread Index | Old Index