diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2016-07-13 16:51:33 +0200 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2016-08-15 10:56:56 +0200 |
commit | a6a477fa8190b13d4ef0150875e2bd114cb5b132 (patch) | |
tree | 0a4902cd997922c684b4ad4488f31eb2bde66f22 /newlib/libc/locale/lnumeric.h | |
parent | 51b669f679119556a12798096794845cd1049d95 (diff) | |
download | cygnal-a6a477fa8190b13d4ef0150875e2bd114cb5b132.tar.gz cygnal-a6a477fa8190b13d4ef0150875e2bd114cb5b132.tar.bz2 cygnal-a6a477fa8190b13d4ef0150875e2bd114cb5b132.zip |
POSIX-1.2008 per-thread locales, groundwork part 1
Introduce first cut of struct _thr_locale_t used for the locale_t definition.
Introduce global instance called __global_locale used by default.
Introduce internal inline functions __get_global_locale, __get_locale_r,
__get_current_locale.
Remove usage of global variables in favor of accessor functions pointing to
__global_locale for now. Include all local headers in locale subdir from
setlocale.h to get single include for internal locale access.
Introduce __CTYPE_PTR macro to replace direct access to __ctype_ptr__
and use throughout in isxxx functions.
Signed-off by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'newlib/libc/locale/lnumeric.h')
-rw-r--r-- | newlib/libc/locale/lnumeric.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/newlib/libc/locale/lnumeric.h b/newlib/libc/locale/lnumeric.h index 2bd7d9745..8a41966b7 100644 --- a/newlib/libc/locale/lnumeric.h +++ b/newlib/libc/locale/lnumeric.h @@ -46,8 +46,9 @@ struct lc_numeric_T { #endif }; -struct lc_numeric_T *__get_current_numeric_locale(void); -int __numeric_load_locale(const char *, void *, const char *); +struct lc_numeric_T *__get_current_numeric_locale (void); +int __numeric_load_locale (struct _thr_locale_t *, const char *, void *, + const char *); __END_DECLS |