Update.
* locale/programs/ld-collate.c (collate_read): Allow collating symbols be named in reorder-after instructions. Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
This commit is contained in:
parent
0c0c8bdeed
commit
d58c3ad021
@ -1,5 +1,9 @@
|
|||||||
2000-07-21 Ulrich Drepper <drepper@redhat.com>
|
2000-07-21 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* locale/programs/ld-collate.c (collate_read): Allow collating
|
||||||
|
symbols be named in reorder-after instructions.
|
||||||
|
Reported by Yoshito Kawada <KAWADA@jp.ibm.com>.
|
||||||
|
|
||||||
* locale/programs/ld-collate.c (handle_ellipsis): Test for
|
* locale/programs/ld-collate.c (handle_ellipsis): Test for
|
||||||
duplication with generated name, not the name of the first
|
duplication with generated name, not the name of the first
|
||||||
character.
|
character.
|
||||||
|
@ -3365,14 +3365,37 @@ error while adding equivalent collating symbol"));
|
|||||||
collate->cursor = insp;
|
collate->cursor = insp;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* This is bad. The symbol after which we have to
|
struct symbol_t *symbp;
|
||||||
insert does not exist. */
|
|
||||||
lr_error (ldfile, _("\
|
if (find_entry (&collate->sym_table, arg->val.str.startmb,
|
||||||
|
arg->val.str.lenmb, (void **) &symbp) == 0)
|
||||||
|
{
|
||||||
|
if (symbp->order->last != NULL
|
||||||
|
|| symbp->order->next != NULL)
|
||||||
|
collate->cursor = symbp->order;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
/* This is a collating symbol but its position
|
||||||
|
is not yet defined. */
|
||||||
|
lr_error (ldfile, _("\
|
||||||
|
%s: order for collating symbol %.*s not yet defined"),
|
||||||
|
"LC_COLLATE", (int) arg->val.str.lenmb,
|
||||||
|
arg->val.str.startmb);
|
||||||
|
collate->cursor = NULL;
|
||||||
|
no_error = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
/* This is bad. The symbol after which we have to
|
||||||
|
insert does not exist. */
|
||||||
|
lr_error (ldfile, _("\
|
||||||
%s: cannot reorder after %.*s: symbol not known"),
|
%s: cannot reorder after %.*s: symbol not known"),
|
||||||
"LC_COLLATE", (int) arg->val.str.lenmb,
|
"LC_COLLATE", (int) arg->val.str.lenmb,
|
||||||
arg->val.str.startmb);
|
arg->val.str.startmb);
|
||||||
collate->cursor = NULL;
|
collate->cursor = NULL;
|
||||||
no_error = 0;
|
no_error = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
lr_ignore_rest (ldfile, no_error);
|
lr_ignore_rest (ldfile, no_error);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user