mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-05 01:00:14 +00:00
Update.
1998-06-18 19:49 Ulrich Drepper <drepper@cygnus.com> * intl/dcgettext.c: use complete type name. * intl/hash-string.h: Likewise. * intl/localealias.c: Undo patch from 1998-04-29. * intl/l10nflist.c: Likewise. * intl/loadinfo.h: Likewise.
This commit is contained in:
parent
3f121ed386
commit
8cb569b756
@ -1,3 +1,12 @@
|
|||||||
|
1998-06-18 19:49 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
|
* intl/dcgettext.c: use complete type name.
|
||||||
|
* intl/hash-string.h: Likewise.
|
||||||
|
|
||||||
|
* intl/localealias.c: Undo patch from 1998-04-29.
|
||||||
|
* intl/l10nflist.c: Likewise.
|
||||||
|
* intl/loadinfo.h: Likewise.
|
||||||
|
|
||||||
1998-06-18 Ulrich Drepper <drepper@cygnus.com>
|
1998-06-18 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
* sysdeps/i386/elf/start.S (_start): Ensure correct alignment.
|
* sysdeps/i386/elf/start.S (_start): Ensure correct alignment.
|
||||||
|
@ -298,7 +298,7 @@ DCGETTEXT (domainname, msgid, category)
|
|||||||
size_t path_max;
|
size_t path_max;
|
||||||
char *ret;
|
char *ret;
|
||||||
|
|
||||||
path_max = (unsigned) PATH_MAX;
|
path_max = (unsigned int) PATH_MAX;
|
||||||
path_max += 2; /* The getcwd docs say to do this. */
|
path_max += 2; /* The getcwd docs say to do this. */
|
||||||
|
|
||||||
dirname = (char *) alloca (path_max + dirname_len);
|
dirname = (char *) alloca (path_max + dirname_len);
|
||||||
|
@ -36,9 +36,9 @@
|
|||||||
/* Defines the so called `hashpjw' function by P.J. Weinberger
|
/* Defines the so called `hashpjw' function by P.J. Weinberger
|
||||||
[see Aho/Sethi/Ullman, COMPILERS: Principles, Techniques and Tools,
|
[see Aho/Sethi/Ullman, COMPILERS: Principles, Techniques and Tools,
|
||||||
1986, 1987 Bell Telephone Laboratories, Inc.] */
|
1986, 1987 Bell Telephone Laboratories, Inc.] */
|
||||||
static unsigned long hash_string PARAMS ((const char *__str_param));
|
static unsigned long int hash_string PARAMS ((const char *__str_param));
|
||||||
|
|
||||||
static inline unsigned long
|
static inline unsigned long int
|
||||||
hash_string (str_param)
|
hash_string (str_param)
|
||||||
const char *str_param;
|
const char *str_param;
|
||||||
{
|
{
|
||||||
@ -50,8 +50,8 @@ hash_string (str_param)
|
|||||||
while (*str != '\0')
|
while (*str != '\0')
|
||||||
{
|
{
|
||||||
hval <<= 4;
|
hval <<= 4;
|
||||||
hval += (unsigned long) *str++;
|
hval += (unsigned long int) *str++;
|
||||||
g = hval & ((unsigned long) 0xf << (HASHWORDBITS - 4));
|
g = hval & ((unsigned long int) 0xf << (HASHWORDBITS - 4));
|
||||||
if (g != 0)
|
if (g != 0)
|
||||||
{
|
{
|
||||||
hval ^= g >> (HASHWORDBITS - 8);
|
hval ^= g >> (HASHWORDBITS - 8);
|
||||||
|
@ -355,7 +355,7 @@ _nl_make_l10nflist (l10nfile_list, dirlist, dirlist_len, mask, language,
|
|||||||
names. */
|
names. */
|
||||||
const char *
|
const char *
|
||||||
_nl_normalize_codeset (codeset, name_len)
|
_nl_normalize_codeset (codeset, name_len)
|
||||||
const unsigned char *codeset;
|
const char *codeset;
|
||||||
size_t name_len;
|
size_t name_len;
|
||||||
{
|
{
|
||||||
int len = 0;
|
int len = 0;
|
||||||
|
@ -51,7 +51,7 @@ struct loaded_l10nfile
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
extern const char *_nl_normalize_codeset PARAMS ((const unsigned char *codeset,
|
extern const char *_nl_normalize_codeset PARAMS ((const char *codeset,
|
||||||
size_t name_len));
|
size_t name_len));
|
||||||
|
|
||||||
extern struct loaded_l10nfile *
|
extern struct loaded_l10nfile *
|
||||||
|
@ -256,10 +256,10 @@ read_alias_file (fname, fname_len)
|
|||||||
b) these fields must be usable as file names and so must not
|
b) these fields must be usable as file names and so must not
|
||||||
be that long
|
be that long
|
||||||
*/
|
*/
|
||||||
unsigned char buf[BUFSIZ];
|
char buf[BUFSIZ];
|
||||||
unsigned char *alias;
|
char *alias;
|
||||||
unsigned char *value;
|
char *value;
|
||||||
unsigned char *cp;
|
char *cp;
|
||||||
|
|
||||||
if (fgets (buf, sizeof buf, fp) == NULL)
|
if (fgets (buf, sizeof buf, fp) == NULL)
|
||||||
/* EOF reached. */
|
/* EOF reached. */
|
||||||
|
Loading…
Reference in New Issue
Block a user