mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Update.
* string/strcoll.c: Use uint32_t instead of u_int32_t. 1998-05-05 Ulrich Drepper <drepper@cygnus.com>
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
1998-05-05 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
|
* string/strcoll.c: Use uint32_t instead of u_int32_t.
|
||||||
|
|
||||||
1998-05-05 Ulrich Drepper <drepper@cygnus.com>
|
1998-05-05 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
* libio/stdio.h: Fix typo in __REDIRECT.
|
* libio/stdio.h: Fix typo in __REDIRECT.
|
||||||
|
@ -155,13 +155,13 @@ GETTING HELP, GLIBC DISCUSSIONS, etc
|
|||||||
------------------------------------
|
------------------------------------
|
||||||
|
|
||||||
People who want to help with glibc and who test out snapshots regularly should
|
People who want to help with glibc and who test out snapshots regularly should
|
||||||
get on the libc-alpha@gnu.org mailing list by sending an email to
|
get on the libc-alpha@cygnus.com mailing list by sending an email to
|
||||||
libc-alpha-request@gnu.org. This list is meant (as the name suggests)
|
libc-alpha-request@cygnus.com. This list is meant (as the name suggests)
|
||||||
for the discussion of test releases and also reports for them. People who are
|
for the discussion of test releases and also reports for them. People who are
|
||||||
on this list are welcome to post questions of general interest.
|
on this list are welcome to post questions of general interest.
|
||||||
|
|
||||||
People who are not only willing to test the snapshots but instead really want
|
People who are not only willing to test the snapshots but instead really want
|
||||||
to help developing glibc should contact libc-hacker-request@gnu.org to
|
to help developing glibc should contact libc-hacker-request@cygnus.com.org to
|
||||||
be put on the developers mailing list. This list is really only meant for
|
be put on the developers mailing list. This list is really only meant for
|
||||||
developers. No questions about installation problems or other simple topics
|
developers. No questions about installation problems or other simple topics
|
||||||
are wanted nor will they be answered.
|
are wanted nor will they be answered.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
/* Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995.
|
Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995.
|
||||||
|
|
||||||
@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
#include <endian.h>
|
#include <endian.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
#include <stdint.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
@ -57,14 +58,14 @@ STRCOLL (s1, s2, l)
|
|||||||
#ifdef USE_IN_EXTENDED_LOCALE_MODEL
|
#ifdef USE_IN_EXTENDED_LOCALE_MODEL
|
||||||
struct locale_data *current = l->__locales[LC_COLLATE];
|
struct locale_data *current = l->__locales[LC_COLLATE];
|
||||||
# if BYTE_ORDER == BIG_ENDIAN
|
# if BYTE_ORDER == BIG_ENDIAN
|
||||||
const u_int32_t *collate_table = (const u_int32_t *)
|
const uint32_t *collate_table = (const uint32_t *)
|
||||||
current->values[_NL_ITEM_INDEX (_NL_COLLATE_TABLE_EB)].string;
|
current->values[_NL_ITEM_INDEX (_NL_COLLATE_TABLE_EB)].string;
|
||||||
const u_int32_t *collate_extra = (const u_int32_t *)
|
const uint32_t *collate_extra = (const uint32_t *)
|
||||||
current->values[_NL_ITEM_INDEX (_NL_COLLATE_EXTRA_EB)].string;
|
current->values[_NL_ITEM_INDEX (_NL_COLLATE_EXTRA_EB)].string;
|
||||||
# elif BYTE_ORDER == LITTLE_ENDIAN
|
# elif BYTE_ORDER == LITTLE_ENDIAN
|
||||||
const u_int32_t *collate_table = (const u_int32_t *)
|
const uint32_t *collate_table = (const uint32_t *)
|
||||||
current->values[_NL_ITEM_INDEX (_NL_COLLATE_TABLE_EL)].string;
|
current->values[_NL_ITEM_INDEX (_NL_COLLATE_TABLE_EL)].string;
|
||||||
const u_int32_t *collate_extra = (const u_int32_t *)
|
const uint32_t *collate_extra = (const uint32_t *)
|
||||||
current->values[_NL_ITEM_INDEX (_NL_COLLATE_EXTRA_EL)].string;
|
current->values[_NL_ITEM_INDEX (_NL_COLLATE_EXTRA_EL)].string;
|
||||||
# else
|
# else
|
||||||
# error bizarre byte order
|
# error bizarre byte order
|
||||||
@ -100,14 +101,14 @@ STRCOLL (s1, s2, l)
|
|||||||
{
|
{
|
||||||
int s1ignore = 0;
|
int s1ignore = 0;
|
||||||
int s2ignore = 0;
|
int s2ignore = 0;
|
||||||
u_int32_t w1 = 0;
|
uint32_t w1 = 0;
|
||||||
u_int32_t w2 = 0;
|
uint32_t w2 = 0;
|
||||||
|
|
||||||
/* Here we have to check for IGNORE entries. If these are
|
/* Here we have to check for IGNORE entries. If these are
|
||||||
found we count them and go on with the next value. */
|
found we count them and go on with the next value. */
|
||||||
while (s1run != NULL
|
while (s1run != NULL
|
||||||
&& ((w1 = s1run->data[pass].value[s1idx])
|
&& ((w1 = s1run->data[pass].value[s1idx])
|
||||||
== (u_int32_t) IGNORE_CHAR))
|
== (uint32_t) IGNORE_CHAR))
|
||||||
{
|
{
|
||||||
++s1ignore;
|
++s1ignore;
|
||||||
if ((forward && ++s1idx >= s1run->data[pass].number)
|
if ((forward && ++s1idx >= s1run->data[pass].number)
|
||||||
@ -129,7 +130,7 @@ STRCOLL (s1, s2, l)
|
|||||||
|
|
||||||
while (s2run != NULL
|
while (s2run != NULL
|
||||||
&& ((w2 = s2run->data[pass].value[s2idx])
|
&& ((w2 = s2run->data[pass].value[s2idx])
|
||||||
== (u_int32_t) IGNORE_CHAR))
|
== (uint32_t) IGNORE_CHAR))
|
||||||
{
|
{
|
||||||
++s2ignore;
|
++s2ignore;
|
||||||
if ((forward && ++s2idx >= s2run->data[pass].number)
|
if ((forward && ++s2idx >= s2run->data[pass].number)
|
||||||
|
Reference in New Issue
Block a user