]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Mon, 17 Jan 2000 01:57:24 +0000 (01:57 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 17 Jan 2000 01:57:24 +0000 (01:57 +0000)
2000-01-16  Ulrich Drepper  <drepper@cygnus.com>

* locale/programs/locfile.h (handle_copy): Take repertoire map
name as parameter, not pointer to repertoire structure.
* locale/programs/ld-address.c: Change caller.
* locale/programs/ld-ctype.c: Likewise.
* locale/programs/ld-identification.c: Likewise.
* locale/programs/ld-measurement.c: Likewise.
* locale/programs/ld-messages.c: Likewise.
* locale/programs/ld-monetary.c: Likewise.
* locale/programs/ld-name.c: Likewise.
* locale/programs/ld-numeric.c: Likewise.
* locale/programs/ld-paper.c: Likewise.
* locale/programs/ld-telephone.c: Likewise.
* locale/programs/ld-time.c: Likewise.

13 files changed:
ChangeLog
locale/programs/ld-address.c
locale/programs/ld-ctype.c
locale/programs/ld-identification.c
locale/programs/ld-measurement.c
locale/programs/ld-messages.c
locale/programs/ld-monetary.c
locale/programs/ld-name.c
locale/programs/ld-numeric.c
locale/programs/ld-paper.c
locale/programs/ld-telephone.c
locale/programs/ld-time.c
locale/programs/locfile.h

index 003b57a9c6cbac594abdb3aab914f9d054127ee5..a97dc34e8eed8b0124b0aeb1de28ae9731f753bc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,19 @@
+2000-01-16  Ulrich Drepper  <drepper@cygnus.com>
+
+       * locale/programs/locfile.h (handle_copy): Take repertoire map
+       name as parameter, not pointer to repertoire structure.
+       * locale/programs/ld-address.c: Change caller.
+       * locale/programs/ld-ctype.c: Likewise.
+       * locale/programs/ld-identification.c: Likewise.
+       * locale/programs/ld-measurement.c: Likewise.
+       * locale/programs/ld-messages.c: Likewise.
+       * locale/programs/ld-monetary.c: Likewise.
+       * locale/programs/ld-name.c: Likewise.
+       * locale/programs/ld-numeric.c: Likewise.
+       * locale/programs/ld-paper.c: Likewise.
+       * locale/programs/ld-telephone.c: Likewise.
+       * locale/programs/ld-time.c: Likewise.
+
 2000-01-13  Ulrich Drepper  <drepper@cygnus.com>
 
        * sysdeps/unix/sysv/linux/i386/mmap64.S: Fix code generated if
index 187b5460ae35a0dbb18f68f15e65a1c28da99eb6..3b743638a8e87c0e70455f32ebf9c447b318401c 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
 
@@ -416,16 +416,11 @@ address_read (struct linereader *ldfile, struct localedef_t *result,
              struct charmap_t *charmap, const char *repertoire_name,
              int ignore_content)
 {
-  struct repertoire_t *repertoire = NULL;
   struct locale_address_t *address;
   struct token *now;
   struct token *arg;
   enum token_t nowtok;
 
-  /* Get the repertoire we have to use.  */
-  if (repertoire_name != NULL)
-    repertoire = repertoire_read (repertoire_name);
-
   /* The rest of the line containing `LC_ADDRESS' must be free.  */
   lr_ignore_rest (ldfile, 1);
 
@@ -440,7 +435,7 @@ address_read (struct linereader *ldfile, struct localedef_t *result,
   /* If we see `copy' now we are almost done.  */
   if (nowtok == tok_copy)
     {
-      handle_copy (ldfile, charmap, repertoire, result, tok_lc_address,
+      handle_copy (ldfile, charmap, repertoire_name, result, tok_lc_address,
                   LC_ADDRESS, "LC_ADDRESS", ignore_content);
       return;
     }
index 231df137ead7efc2312771f882fbbf0da8e07667..0f403627681b752218b47939e86683f7b9f54fbd 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1995-1999, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@gnu.org>, 1995.
 
@@ -1855,8 +1855,8 @@ ctype_read (struct linereader *ldfile, struct localedef_t *result,
   /* If we see `copy' now we are almost done.  */
   if (nowtok == tok_copy)
     {
-      handle_copy (ldfile, charmap, repertoire, result, tok_lc_ctype, LC_CTYPE,
-                  "LC_CTYPE", ignore_content);
+      handle_copy (ldfile, charmap, repertoire_name, result, tok_lc_ctype,
+                  LC_CTYPE, "LC_CTYPE", ignore_content);
       return;
     }
 
index b14db505edf9e82f3e8d8b5ca27430ac358b1355..bc252a018fb412972b1ba670981d82d8023c7638 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
 
@@ -289,7 +289,6 @@ identification_read (struct linereader *ldfile, struct localedef_t *result,
               struct charmap_t *charmap, const char *repertoire_name,
               int ignore_content)
 {
-  struct repertoire_t *repertoire = NULL;
   struct locale_identification_t *identification;
   struct token *now;
   struct token *arg;
@@ -297,10 +296,6 @@ identification_read (struct linereader *ldfile, struct localedef_t *result,
   int category;
   enum token_t nowtok;
 
-  /* Get the repertoire we have to use.  */
-  if (repertoire_name != NULL)
-    repertoire = repertoire_read (repertoire_name);
-
   /* The rest of the line containing `LC_IDENTIFICATION' must be free.  */
   lr_ignore_rest (ldfile, 1);
 
@@ -314,8 +309,9 @@ identification_read (struct linereader *ldfile, struct localedef_t *result,
   /* If we see `copy' now we are almost done.  */
   if (nowtok == tok_copy)
     {
-      handle_copy (ldfile, charmap, repertoire, result, tok_lc_identification,
-                  LC_IDENTIFICATION, "LC_IDENTIFICATION", ignore_content);
+      handle_copy (ldfile, charmap, repertoire_name, result,
+                  tok_lc_identification, LC_IDENTIFICATION,
+                  "LC_IDENTIFICATION", ignore_content);
       return;
     }
 
index c3dbf5f705031e40c2185163c6702bdbd00cee3e..68bb3a2d3bb01de0b53e2b5bbf7c678c2e52d090 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
 
@@ -160,10 +160,6 @@ measurement_read (struct linereader *ldfile, struct localedef_t *result,
   struct token *arg;
   enum token_t nowtok;
 
-  /* Get the repertoire we have to use.  */
-  if (repertoire_name != NULL)
-    repertoire = repertoire_read (repertoire_name);
-
   /* The rest of the line containing `LC_MEASUREMENT' must be free.  */
   lr_ignore_rest (ldfile, 1);
 
@@ -177,8 +173,9 @@ measurement_read (struct linereader *ldfile, struct localedef_t *result,
   /* If we see `copy' now we are almost done.  */
   if (nowtok == tok_copy)
     {
-      handle_copy (ldfile, charmap, repertoire, result, tok_lc_measurement,
-                  LC_MEASUREMENT, "LC_MEASUREMENT", ignore_content);
+      handle_copy (ldfile, charmap, repertoire_name, result,
+                  tok_lc_measurement, LC_MEASUREMENT, "LC_MEASUREMENT",
+                  ignore_content);
       return;
     }
 
index 2ee4bda69e7517c53dc49be87ac64ec809a43590..6ca2d8ad4f8a1188f96899b08be2c20ef1651241 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1995-1999, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@gnu.org>, 1995.
 
@@ -253,7 +253,7 @@ messages_read (struct linereader *ldfile, struct localedef_t *result,
   /* If we see `copy' now we are almost done.  */
   if (nowtok == tok_copy)
     {
-      handle_copy (ldfile, charmap, repertoire, result, tok_lc_messages,
+      handle_copy (ldfile, charmap, repertoire_name, result, tok_lc_messages,
                   LC_MESSAGES, "LC_MESSAGES", ignore_content);
       return;
     }
index c761ae24c0cf67c511e4aa74a44bb52121c42e33..6a7655817c22330c250d0df784cbe140243729f1 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1995-1999, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@gnu.org>, 1995.
 
@@ -595,15 +595,10 @@ monetary_read (struct linereader *ldfile, struct localedef_t *result,
               struct charmap_t *charmap, const char *repertoire_name,
               int ignore_content)
 {
-  struct repertoire_t *repertoire = NULL;
   struct locale_monetary_t *monetary;
   struct token *now;
   enum token_t nowtok;
 
-  /* Get the repertoire we have to use.  */
-  if (repertoire_name != NULL)
-    repertoire = repertoire_read (repertoire_name);
-
   /* The rest of the line containing `LC_MONETARY' must be free.  */
   lr_ignore_rest (ldfile, 1);
 
@@ -617,7 +612,7 @@ monetary_read (struct linereader *ldfile, struct localedef_t *result,
   /* If we see `copy' now we are almost done.  */
   if (nowtok == tok_copy)
     {
-      handle_copy (ldfile, charmap, repertoire, result, tok_lc_monetary,
+      handle_copy (ldfile, charmap, repertoire_name, result, tok_lc_monetary,
                   LC_MONETARY, "LC_MONETARY", ignore_content);
       return;
     }
index 39ab22c2f71d574268e7ffbe29b7e4a90ae8bbac..6eeecd4d9dc64c45a13f818facfa787b09e0214a 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
 
@@ -213,16 +213,11 @@ name_read (struct linereader *ldfile, struct localedef_t *result,
           struct charmap_t *charmap, const char *repertoire_name,
           int ignore_content)
 {
-  struct repertoire_t *repertoire = NULL;
   struct locale_name_t *name;
   struct token *now;
   struct token *arg;
   enum token_t nowtok;
 
-  /* Get the repertoire we have to use.  */
-  if (repertoire_name != NULL)
-    repertoire = repertoire_read (repertoire_name);
-
   /* The rest of the line containing `LC_NAME' must be empty.  */
   lr_ignore_rest (ldfile, 1);
 
@@ -236,8 +231,8 @@ name_read (struct linereader *ldfile, struct localedef_t *result,
   /* If we see `copy' now we are almost done.  */
   if (nowtok == tok_copy)
     {
-      handle_copy (ldfile, charmap, repertoire, result, tok_lc_name, LC_NAME,
-                  "LC_NAME", ignore_content);
+      handle_copy (ldfile, charmap, repertoire_name, result, tok_lc_name,
+                  LC_NAME, "LC_NAME", ignore_content);
       return;
     }
 
index b35e6d60f5b4f838c0a57f7383ebd73cf76ed09b..e61db91e8b23d72404338d3e91c1d88d86554537 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1995-1999, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@gnu.org>, 1995.
 
@@ -182,15 +182,10 @@ numeric_read (struct linereader *ldfile, struct localedef_t *result,
              struct charmap_t *charmap, const char *repertoire_name,
              int ignore_content)
 {
-  struct repertoire_t *repertoire = NULL;
   struct locale_numeric_t *numeric;
   struct token *now;
   enum token_t nowtok;
 
-  /* Get the repertoire we have to use.  */
-  if (repertoire_name != NULL)
-    repertoire = repertoire_read (repertoire_name);
-
   /* The rest of the line containing `LC_NUMERIC' must be free.  */
   lr_ignore_rest (ldfile, 1);
 
@@ -205,7 +200,7 @@ numeric_read (struct linereader *ldfile, struct localedef_t *result,
   /* If we see `copy' now we are almost done.  */
   if (nowtok == tok_copy)
     {
-      handle_copy (ldfile, charmap, repertoire, result, tok_lc_numeric,
+      handle_copy (ldfile, charmap, repertoire_name, result, tok_lc_numeric,
                   LC_NUMERIC, "LC_NUMERIC", ignore_content);
       return;
     }
index 2c1e4c64fbeb6065a3f9ffe0bf7ad8f5cf28f128..19cf22587cf5f3c356dfe96f01bb9f90fb8a66e6 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
 
@@ -156,16 +156,11 @@ paper_read (struct linereader *ldfile, struct localedef_t *result,
            struct charmap_t *charmap, const char *repertoire_name,
            int ignore_content)
 {
-  struct repertoire_t *repertoire = NULL;
   struct locale_paper_t *paper;
   struct token *now;
   struct token *arg;
   enum token_t nowtok;
 
-  /* Get the repertoire we have to use.  */
-  if (repertoire_name != NULL)
-    repertoire = repertoire_read (repertoire_name);
-
   /* The rest of the line containing `LC_PAPER' must be empty.  */
   lr_ignore_rest (ldfile, 1);
 
@@ -179,7 +174,7 @@ paper_read (struct linereader *ldfile, struct localedef_t *result,
   /* If we see `copy' now we are almost done.  */
   if (nowtok == tok_copy)
     {
-      handle_copy (ldfile, charmap, repertoire, result, tok_lc_paper,
+      handle_copy (ldfile, charmap, repertoire_name, result, tok_lc_paper,
                   LC_PAPER, "LC_PAPER", ignore_content);
       return;
     }
index 1fd79fb516260c6869aa9b1e9011b105553b74d2..19ba12d1bbdfb100b0c520d375fc35435778d79e 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
 
@@ -223,16 +223,11 @@ telephone_read (struct linereader *ldfile, struct localedef_t *result,
                struct charmap_t *charmap, const char *repertoire_name,
                int ignore_content)
 {
-  struct repertoire_t *repertoire = NULL;
   struct locale_telephone_t *telephone;
   struct token *now;
   struct token *arg;
   enum token_t nowtok;
 
-  /* Get the repertoire we have to use.  */
-  if (repertoire_name != NULL)
-    repertoire = repertoire_read (repertoire_name);
-
   /* The rest of the line containing `LC_TELEPHONE' must be free.  */
   lr_ignore_rest (ldfile, 1);
 
@@ -246,7 +241,7 @@ telephone_read (struct linereader *ldfile, struct localedef_t *result,
   /* If we see `copy' now we are almost done.  */
   if (nowtok == tok_copy)
     {
-      handle_copy (ldfile, charmap, repertoire, result, tok_lc_telephone,
+      handle_copy (ldfile, charmap, repertoire_name, result, tok_lc_telephone,
                   LC_TELEPHONE, "LC_TELEPHONE", ignore_content);
       return;
     }
index 0d513964e988b31650776d95794c311c9e81625e..2bed14f7b1d27bd899be23b96ecc493a04e3beaf 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1995-1999, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@gnu.org>, 1995.
 
@@ -884,7 +884,7 @@ time_read (struct linereader *ldfile, struct localedef_t *result,
   /* If we see `copy' now we are almost done.  */
   if (nowtok == tok_copy)
     {
-      handle_copy (ldfile, charmap, repertoire, result, tok_lc_time,
+      handle_copy (ldfile, charmap, repertoire_name, result, tok_lc_time,
                   LC_TIME, "LC_TIME", ignore_content);
       return;
     }
index 50a1d7709d47541a774a3a395cde7e17a0161deb..ed843b6a29b9514bf70bf9c8f8234687c9d935e7 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@gnu.org>, 1996.
 
@@ -47,7 +47,7 @@ struct locale_file
 /* General handling of `copy'.  */
 static inline void
 handle_copy (struct linereader *ldfile, struct charmap_t *charmap,
-            struct repertoire_t *repertoire, struct localedef_t *result,
+            const char *repertoire_name, struct localedef_t *result,
             enum token_t token, int locale, const char *locale_name,
             int ignore_content)
 {
@@ -65,7 +65,7 @@ locale name should consist only of portable characters"));
       else
        {
          (void) add_to_readlist (locale, now->val.str.startmb,
-                                 repertoire->name, 1);
+                                 repertoire_name, 1);
          result->copy_name[locale] = now->val.str.startmb;
        }
     }