diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2016-07-21 20:49:42 +0200 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2016-08-15 10:56:57 +0200 |
commit | 1498c79db89ea0e02a49ffa34e71da480e37165e (patch) | |
tree | bda74f7fab50ac2ab0e8262a91865e1e6a8c03c2 /newlib/libc/include/locale.h | |
parent | d16a56306d63b4d94412b479a8ea83463a3514ab (diff) | |
download | cygnal-1498c79db89ea0e02a49ffa34e71da480e37165e.tar.gz cygnal-1498c79db89ea0e02a49ffa34e71da480e37165e.tar.bz2 cygnal-1498c79db89ea0e02a49ffa34e71da480e37165e.zip |
Change loadlocale to fill a __locale_t given as parameter
Don't use global variables. This allows to call loadlocale from
the yet to be created newlocale().
Rename _thr_locale_t to __locale_t (these locales are not restricted
to threads so the name is misleading).
Along these lines, fix _set_ctype to take a __locale_t as parameter.
Signed-off by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'newlib/libc/include/locale.h')
-rw-r--r-- | newlib/libc/include/locale.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/newlib/libc/include/locale.h b/newlib/libc/include/locale.h index c7bfd5996..40e412451 100644 --- a/newlib/libc/include/locale.h +++ b/newlib/libc/include/locale.h @@ -29,10 +29,10 @@ #define LC_TIME_MASK (1 << LC_TIME) #define LC_MESSAGES_MASK (1 << LC_MESSAGES) -#define LC_GLOBAL_LOCALE ((struct _thr_locale_t *) -1) +#define LC_GLOBAL_LOCALE ((struct __locale_t *) -1) -struct _thr_locale_t; -typedef struct _thr_locale_t *locale_t; +struct __locale_t; +typedef struct __locale_t *locale_t; #endif _BEGIN_STD_C |