]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Remove unused codeset_cntr fields.
authorBruno Haible <bruno@clisp.org>
Fri, 29 Apr 2005 17:46:04 +0000 (17:46 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:12:32 +0000 (12:12 +0200)
gettext-runtime/intl/ChangeLog
gettext-runtime/intl/bindtextdom.c

index 136b5df4d21fe92b427a7804c8caefb73fc8598d..9ee195e41a999ecbb864177b2a1322a1a21da156 100644 (file)
@@ -1,3 +1,9 @@
+2005-03-19  Bruno Haible  <bruno@clisp.org>
+
+       * gettextP.h (struct loaded_domain): Remove codeset_cntr field.
+       (struct binding): Likewise.
+       * bindtextdom.c (set_binding_values): Drop codeset_cntr modifications.
+
 2005-03-19  Bruno Haible  <bruno@clisp.org>
 
        Fix gettext-tools/tests/gettext-5 bug.
index dcdc40085da9e9f6b189d512425bafc114219b1c..b620a4ab1ec89c227a3069801d0f47dc1460efc6 100644 (file)
@@ -1,5 +1,5 @@
 /* Implementation of the bindtextdomain(3) function
-   Copyright (C) 1995-1998, 2000-2003 Free Software Foundation, Inc.
+   Copyright (C) 1995-1998, 2000-2003, 2005 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify it
    under the terms of the GNU Library General Public License as published
@@ -201,7 +201,6 @@ set_binding_values (const char *domainname,
                        free (binding->codeset);
 
                      binding->codeset = result;
-                     binding->codeset_cntr++;
                      modified = 1;
                    }
                }
@@ -265,8 +264,6 @@ set_binding_values (const char *domainname,
        /* The default value.  */
        new_binding->dirname = (char *) INTUSE(_nl_default_dirname);
 
-      new_binding->codeset_cntr = 0;
-
       if (codesetp)
        {
          const char *codeset = *codesetp;
@@ -287,7 +284,6 @@ set_binding_values (const char *domainname,
              memcpy (result, codeset, len);
 #endif
              codeset = result;
-             new_binding->codeset_cntr++;
            }
          *codesetp = codeset;
          new_binding->codeset = (char *) codeset;