]> sourceware.org Git - newlib-cygwin.git/commit
POSIX-1.2008 per-thread locales, groundwork part 1
authorCorinna Vinschen <corinna@vinschen.de>
Wed, 13 Jul 2016 14:51:33 +0000 (16:51 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 15 Aug 2016 08:56:56 +0000 (10:56 +0200)
commita6a477fa8190b13d4ef0150875e2bd114cb5b132
tree0a4902cd997922c684b4ad4488f31eb2bde66f22
parent51b669f679119556a12798096794845cd1049d95
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>
31 files changed:
newlib/libc/ctype/ctype_.c
newlib/libc/ctype/isalnum.c
newlib/libc/ctype/isalpha.c
newlib/libc/ctype/isblank.c
newlib/libc/ctype/iscntrl.c
newlib/libc/ctype/isdigit.c
newlib/libc/ctype/islower.c
newlib/libc/ctype/isprint.c
newlib/libc/ctype/ispunct.c
newlib/libc/ctype/isspace.c
newlib/libc/ctype/isupper.c
newlib/libc/ctype/isxdigit.c
newlib/libc/include/ctype.h
newlib/libc/include/locale.h
newlib/libc/locale/lctype.c
newlib/libc/locale/lctype.h
newlib/libc/locale/lmessages.c
newlib/libc/locale/lmessages.h
newlib/libc/locale/lmonetary.c
newlib/libc/locale/lmonetary.h
newlib/libc/locale/lnumeric.c
newlib/libc/locale/lnumeric.h
newlib/libc/locale/locale.c
newlib/libc/locale/nl_langinfo.c
newlib/libc/locale/setlocale.h
newlib/libc/locale/timelocal.c
newlib/libc/locale/timelocal.h
winsup/cygwin/common.din
winsup/cygwin/ctype.cc
winsup/cygwin/nlsfuncs.cc
winsup/cygwin/regex/regcomp.c
This page took 0.036253 seconds and 5 git commands to generate.