]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Use plural-count.
authorBruno Haible <bruno@clisp.org>
Sun, 24 Aug 2003 18:11:08 +0000 (18:11 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:10:54 +0000 (12:10 +0200)
gettext-tools/src/ChangeLog
gettext-tools/src/msgmerge.c

index 63081f0b3ac1cb5ff7d0f01ada43645e22d1d9f9..ad5b52ec52c48ae9077906a66691d958e62419c9 100644 (file)
@@ -2,6 +2,8 @@
 
        * plural-count.h: New file.
        * plural-count.c: New file, extracted from msgmerge.c.
+       * msgmerge.c: Include plural-count.h instead of plural-exp.h.
+       (match_domain): Use function get_plural_count().
        * Makefile.am (noinst_HEADERS): Add plural-count.h.
        (msgmerge_SOURCES): Add plural-count.c.
        * Makefile.msvc (msgmerge_OBJECTS): Add plural-count.obj.
index d9cb33f75fdb24d0dd25e6e970862ba5e9c2d8d0..a2e3591c4e369cfe6ba4e8adc74d4cc90342e524 100644 (file)
@@ -47,7 +47,7 @@
 #include "stpncpy.h"
 #include "msgl-iconv.h"
 #include "msgl-equal.h"
-#include "plural-exp.h"
+#include "plural-count.h"
 #include "backupfile.h"
 #include "copy-file.h"
 #include "gettext.h"
@@ -977,14 +977,11 @@ this message is used but not defined in %s"), fn1);
        if (problematic & 1)
          {
            /* Need to know nplurals of the result domain.  */
-           message_ty *header_entry;
-           struct expression *plural;
-
-           header_entry = message_list_search (resultmlp, "");
-           extract_plural_expression (header_entry
-                                      ? header_entry->msgstr
-                                      : NULL,
-                                      &plural, &nplurals);
+           message_ty *header_entry = message_list_search (resultmlp, "");
+
+           nplurals = get_plural_count (header_entry
+                                        ? header_entry->msgstr
+                                        : NULL);
          }
 
        for (j = 0; j < resultmlp->nitems; j++)