diff options
author | Roland McGrath <roland@gnu.org> | 2002-08-30 10:36:44 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-08-30 10:36:44 +0000 |
commit | 1ce8aaaedbf549702c607e8a944bcb06b2c37544 (patch) | |
tree | 76190020f59b42303fd7586536c5257634f6623c /locale/xlocale.h | |
parent | ccaf7306707314c44a8f636cc198a80fa7db12b1 (diff) | |
download | glibc-1ce8aaaedbf549702c607e8a944bcb06b2c37544.tar.gz glibc-1ce8aaaedbf549702c607e8a944bcb06b2c37544.tar.xz glibc-1ce8aaaedbf549702c607e8a944bcb06b2c37544.zip |
* locale/xlocale.h (struct __locale_struct): New member `__names'.
* locale/xlocale.c (_nl_C_locobj): Update initializer. * locale/global-locale.c (_nl_global_locale): Likewise. * locale/duplocale.c (__duplocale): strdup __names elements. * locale/freelocale.c (__freelocale): Free __names elements. * locale/localename.c (_nl_current_names): Variable removed. (__current_locale_name): Use _NL_CURRENT_LOCALE->__names instead. * locale/localeinfo.h (_nl_current_names): Removed decl. * locale/setlocale.c: Use _nl_global_locale->__names in place of _nl_current_names throughout. * locale/setlocale.c (setlocale): strdup -> __strdup (not ISO C). * sysdeps/gnu/errlist-compat.awk: Emit link_warnings for sys_errlist and sys_nerr in the output file. * sunrpc/Makefile (rpcgen-cmd): Pass CPP in rpcgen's environment. * scripts/cpp: Just use the environment variable. * libio/tst-mmap-setvbuf.c (main): Use 'm' fopen flag. * libio/tst-mmap-offend.c (do_test): Likewise. * libio/tst-mmap-fflushsync.c (do_test): Likewise. * libio/tst-mmap-eofsync.c (do_test): Likewise. * libio/tst-mmap2-eofsync.c (do_test): Likewise.
Diffstat (limited to 'locale/xlocale.h')
-rw-r--r-- | locale/xlocale.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/locale/xlocale.h b/locale/xlocale.h index fa65e10a01..4fb557d3bf 100644 --- a/locale/xlocale.h +++ b/locale/xlocale.h @@ -1,5 +1,5 @@ /* Definition of locale datatype. - Copyright (C) 1997, 2000 Free Software Foundation, Inc. + Copyright (C) 1997,2000,02 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997. @@ -29,6 +29,7 @@ typedef struct __locale_struct { /* Note: LC_ALL is not a valid index into this array. */ struct locale_data *__locales[13]; /* 13 = __LC_LAST. */ + const char *__names[13]; /* To increase the speed of this solution we add some special members. */ const unsigned short int *__ctype_b; |