From: Ulrich Drepper Date: Sun, 13 Feb 2000 07:29:13 +0000 (+0000) Subject: (locfile_read): Initialize locfile->repertoire. Pass repertoire to X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d5f749a8c50e8cc0e21f97f215d8fdcd0204422;p=thirdparty%2Fglibc.git (locfile_read): Initialize locfile->repertoire. Pass repertoire to ctype_class_from, ctype_class_to, ctype_map_from, and ctype_map_to calls. --- diff --git a/locale/programs/locfile.c b/locale/programs/locfile.c index a90168ac814..d01aeae3dcb 100644 --- a/locale/programs/locfile.c +++ b/locale/programs/locfile.c @@ -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 , 1996. @@ -282,7 +282,8 @@ argument to `%s' must be a single character"), error (4, 0, _("no repertoire map specified: cannot proceed")); - repertoire = repertoire_read (repertoiremap); + result->repertoire = repertoire + = repertoire_read (repertoiremap); if (repertoire == NULL) /* This is also fatal. */ error (4, errno, _("cannot read repertoire map `%s'"), @@ -300,7 +301,8 @@ argument to `%s' must be a single character"), error (4, 0, _("no repertoire map specified: cannot proceed")); - repertoire = repertoire_read (repertoiremap); + result->repertoire = repertoire + = repertoire_read (repertoiremap); if (repertoire == NULL) /* This is also fatal. */ error (4, errno, _("cannot read repertoire map `%s'"), @@ -318,7 +320,8 @@ argument to `%s' must be a single character"), error (4, 0, _("no repertoire map specified: cannot proceed")); - repertoire = repertoire_read (repertoiremap); + result->repertoire = repertoire + = repertoire_read (repertoiremap); if (repertoire == NULL) /* This is also fatal. */ error (4, errno, _("cannot read repertoire map `%s'"), @@ -336,7 +339,8 @@ argument to `%s' must be a single character"), error (4, 0, _("no repertoire map specified: cannot proceed")); - repertoire = repertoire_read (repertoiremap); + result->repertoire = repertoire + = repertoire_read (repertoiremap); if (repertoire == NULL) /* This is also fatal. */ error (4, errno, _("cannot read repertoire map `%s'"), @@ -354,7 +358,8 @@ argument to `%s' must be a single character"), error (4, 0, _("no repertoire map specified: cannot proceed")); - repertoire = repertoire_read (repertoiremap); + result->repertoire = repertoire + = repertoire_read (repertoiremap); if (repertoire == NULL) /* This is also fatal. */ error (4, errno, _("cannot read repertoire map `%s'"), @@ -372,7 +377,8 @@ argument to `%s' must be a single character"), error (4, 0, _("no repertoire map specified: cannot proceed")); - repertoire = repertoire_read (repertoiremap); + result->repertoire = repertoire + = repertoire_read (repertoiremap); if (repertoire == NULL) /* This is also fatal. */ error (4, errno, _("cannot read repertoire map `%s'"), @@ -495,7 +501,7 @@ syntax error in character class definition")); } /* Lookup value for token and write into array. */ - ctype_class_from (ldfile, result, arg, charset); + ctype_class_from (ldfile, result, arg, charset, repertoire); arg = lr_token (ldfile, charset); if (arg->tok == tok_semicolon) @@ -515,7 +521,7 @@ syntax error in character class definition")); goto bad_charclass; /* Write range starting at LAST to ARG->VAL. */ - ctype_class_to (ldfile, result, arg, charset); + ctype_class_to (ldfile, result, arg, charset, repertoire); arg = lr_token (ldfile, charset); if (arg->tok == tok_semicolon) @@ -554,7 +560,7 @@ syntax error in character conversion definition")); } /* Lookup arg and assign to FROM. */ - ctype_map_from (ldfile, result, now, charset); + ctype_map_from (ldfile, result, now, charset, repertoire); now = lr_token (ldfile, charset); if (now->tok != tok_comma) @@ -565,7 +571,7 @@ syntax error in character conversion definition")); goto bad_charconv; /* Lookup arg and assign to TO. */ - ctype_map_to (ldfile, result, now, charset); + ctype_map_to (ldfile, result, now, charset, repertoire); now = lr_token (ldfile, charset); if (now->tok != tok_close_brace)