mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-29 08:11:08 +00:00
Update.
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.
This commit is contained in:
parent
a8ef1b608b
commit
01ff9d0b54
16
ChangeLog
16
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
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user