newlib-cygwin/newlib/libc
Corinna Vinschen d16a56306d Consolidate wctomb/mbtowc calls for POSIX-1.2008
- Remove charset parameter from low level __foo_wctomb/__foo_mbtowc calls.
- Instead, create array of function for ISO and Windows codepages to point
  to function which does not require to evaluate the charset string on
  each call.  Create matching helper functions.  I.e., __iso_wctomb,
  __iso_mbtowc, __cp_wctomb and __cp_mbtowc are functions returning the
  right function pointer now.
- Create __WCTOMB/__MBTOWC macros utilizing per-reent locale and replace
  calls to __wctomb/__mbtowc with calls to __WCTOMB/__MBTOWC.
- Drop global __wctomb/__mbtowc vars.
- Utilize aforementioned changes in Cygwin to get rid of charset in other,
  calling functions and simplify the code.
- In Cygwin restrict global cygheap locale info to the job performed
  by internal_setlocale.  Use UTF-8 instead of ASCII on the fly in
  internal conversion functions.
- In Cygwin dll_entry, make sure to initialize a TLS area with a NULL
  _REENT->_locale pointer.  Add comment to explain why.

Signed-off by: Corinna Vinschen <corinna@vinschen.de>
2016-08-15 10:56:57 +02:00
..
argz Regenerate newlib Makefiles 2016-07-04 17:13:55 +01:00
ctype Consolidate wctomb/mbtowc calls for POSIX-1.2008 2016-08-15 10:56:57 +02:00
errno Regenerate newlib Makefiles 2016-07-04 17:13:55 +01:00
iconv Regenerate newlib Makefiles 2016-07-04 17:13:55 +01:00
include POSIX-1.2008 per-thread locales, groundwork part 1 2016-08-15 10:56:56 +02:00
locale Consolidate wctomb/mbtowc calls for POSIX-1.2008 2016-08-15 10:56:57 +02:00
machine arc: Fix strcmp for big endian without barrel shifter 2016-08-11 10:59:54 +02:00
misc Regenerate newlib Makefiles 2016-07-04 17:13:55 +01:00
posix Regenerate newlib Makefiles 2016-07-04 17:13:55 +01:00
reent Regenerate newlib Makefiles 2016-07-04 17:13:55 +01:00
search Regenerate newlib Makefiles 2016-07-04 17:13:55 +01:00
signal Regenerate newlib Makefiles 2016-07-04 17:13:55 +01:00
stdio Consolidate wctomb/mbtowc calls for POSIX-1.2008 2016-08-15 10:56:57 +02:00
stdio64 Regenerate newlib Makefiles 2016-07-04 17:13:55 +01:00
stdlib Consolidate wctomb/mbtowc calls for POSIX-1.2008 2016-08-15 10:56:57 +02:00
string Regenerate newlib Makefiles 2016-07-04 17:13:55 +01:00
sys rtems: add sys/mman.h 2016-08-08 11:11:48 -05:00
syscalls Regenerate newlib Makefiles 2016-07-04 17:13:55 +01:00
time Consolidate wctomb/mbtowc calls for POSIX-1.2008 2016-08-15 10:56:57 +02:00
unix Regenerate newlib Makefiles 2016-07-04 17:13:55 +01:00
xdr Regenerate newlib Makefiles 2016-07-04 17:13:55 +01:00
Makefile.am Make newlib manpages (v3) 2016-07-04 14:17:10 +01:00
Makefile.in Regenerate newlib Makefiles 2016-07-04 17:13:55 +01:00
aclocal.m4 Fix up errors in regenerated files for 2.3.0 release. 2016-01-04 12:57:31 -05:00
configure Bump up newlib version to 2.4.0 due to feature test refactoring 2016-03-29 17:33:42 -04:00
configure.in 2014-07-04 Bin Cheng <bin.cheng@arm.com> 2014-07-04 17:21:45 +00:00
libc.in.xml Make newlib manpages (v3) 2016-07-04 14:17:10 +01:00
libc.texinfo Fix newlib texinfo source so 'info libc' and 'info libm' work 2015-03-16 15:02:22 +00:00
saber
sys.tex Don't include stdio64 functions in reentrant syscalls menu when not bulding stdio64. 2015-08-03 09:54:33 +01:00