acadia-newlib/newlib/libc/stdlib
Corinna Vinschen 28186e81d9 * libc/ctype/iswalpha.c: Handle all wchar_t as unicode on
_MB_CAPABLE systems.
	* libc/ctype/iswblank.c: Ditto.
	* libc/ctype/iswcntrl.c: Ditto.
	* libc/ctype/iswprint.c: Ditto.
	* libc/ctype/iswpunct.c: Ditto.
	* libc/ctype/iswspace.c: Ditto.
	* libc/ctype/jp2uc.c (__jp2uc): On Cygwin, just return c.
	Explain why.
	* libc/ctype/towlower.c: Ditto.
	* libc/ctype/towupper.c: Ditto.
	* libc/include/sys/config.h: Define _MB_EXTENDED_CHARSETS_ISO
	and _MB_EXTENDED_CHARSETS_WINDOWS if _MB_EXTENDED_CHARSETS_ALL is
	defined.  Define _MB_EXTENDED_CHARSETS_ALL on Cygwin only for now.
	* libc/include/sys/reent.h (struct _reent): Mark _current_category
	and _current_locale as unused.
	* libc/locale/locale.c: Add new charset support to documentation.
	Include ../stdio/local.h from here.
	(lc_ctype_charset): Set to "ASCII" by default.
	(lc_message_charset): Ditto.
	(_setlocale_r): Don't set _current_category and _current_locale.
	(loadlocale): Add Cygwin codepage support.  On _MB_CAPABLE
	systems, set __mbtowc and __wctomb function pointers to function
	corresponding with current charset.  Don't allow non-existant
	ISO-8859-12 charset.  Add support for Windows singlebyte codepages.
	On Cygwin, add support for GBK, CP949, and BIG5.  On Cygwin,
	call __set_ctype() in case the catorgy is LC_CTYPE.  Don't set
	_current_category and _current_locale.
	* libc/stdlib/Makefile.am (GENERAL_SOURCES): Add sb_charsets.c.
	* libc/stdlib/Makefile.in: Regenerate.
	* libc/stdlib/local.h: Add prototype for __locale_charset.
	Add prototypes for __mbtowc and __wctomb pointers.
	Add prototypes for charset-specific _wctomb_r and _mbtowc_r
	functions.
	Declare tables and functions from sb_charsets.c.
	* libc/stdlib/mbtowc_r.c (__mbtowc): Define.  Set to __ascii_mbtowc
	by default.
	(_mbtowc_r): Just call __mbtowc from here.
	(__ascii_mbtowc): New function.
	(__iso_mbtowc): New function.
	(__cp_mbtowc): New function.
	(__utf8_mbtowc): New function.
	(__sjis_mbtowc): New function.  Disable on Cygwin.
	(__eucjp_mbtowc): New function.  Disable on Cygwin.
	(__jis_mbtowc): New function.  Disable on Cygwin.
	* libc/stdlib/sb_charsets.c: New file, adding singlebyte to UTF
	conversion tables for all ISO and CP charsets.
	(__iso_8859_index): New function.
	(__cp_index): New function.
	* libc/stdlib/wctomb_r.c (__wctomb): Define.  Set to __ascii_wctomb
	by default.
	(_wctomb_r): Just call __wctomb from here.
	(__ascii_wctomb): New function.
	(__utf8_wctomb): New function.
	(__sjis_wctomb): New function.  Disable on Cygwin.
	(__eucjp_wctomb): New function.  Disable on Cygwin.
	(__jis_wctomb): New function.  Disable on Cygwin.
	(__iso_wctomb): New function.
	(__cp_wctomb): New function.
2009-03-24 10:13:27 +00:00
..
Makefile.am * libc/ctype/iswalpha.c: Handle all wchar_t as unicode on 2009-03-24 10:13:27 +00:00
Makefile.in * libc/ctype/iswalpha.c: Handle all wchar_t as unicode on 2009-03-24 10:13:27 +00:00
_Exit.c
__adjust.c
__atexit.c * acconfig.h (_ATEXIT_DYNAMIC_ALLOC): Undef. 2006-03-21 00:57:34 +00:00
__call_atexit.c * libc/stdlib/__call_atexit.c (__call_exitprocs): Handle atexit 2007-04-05 16:47:38 +00:00
__exp10.c 2008-12-11 Craig Howland <howland@LGSInnovations.com> 2008-12-11 17:27:56 +00:00
__ten_mu.c 2008-12-11 Craig Howland <howland@LGSInnovations.com> 2008-12-11 17:27:56 +00:00
a64l.c 2005-10-28 Bob Wilson <bob.wilson@acm.org> 2005-10-28 21:21:08 +00:00
abort.c
abs.c
assert.c Support __func__ in assert, as required by C99. 2007-06-27 12:44:41 +00:00
atexit.c 2004-09-09 Paul Brook <paul@codesourcery.com> 2004-09-09 19:46:54 +00:00
atexit.h 2004-09-09 Paul Brook <paul@codesourcery.com> 2004-09-09 19:46:54 +00:00
atof.c 2003-10-20 Bob Wilson <bob.wilson@acm.org> 2003-10-20 18:46:38 +00:00
atoff.c
atoi.c 2003-11-27 Jeff Johnston <jjohnstn@redhat.com> 2003-11-27 20:54:12 +00:00
atol.c 2003-11-27 Jeff Johnston <jjohnstn@redhat.com> 2003-11-27 20:15:47 +00:00
atoll.c 2003-11-27 Jeff Johnston <jjohnstn@redhat.com> 2003-11-27 20:15:47 +00:00
btowc.c Avoid more compiler warnings. 2007-05-29 21:26:59 +00:00
calloc.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:08:03 +00:00
cxa_atexit.c 2004-09-15 Jeff Johnston <jjohnstn@redhat.com> 2004-09-15 20:50:08 +00:00
cxa_finalize.c 2004-09-15 Jeff Johnston <jjohnstn@redhat.com> 2004-09-15 20:50:08 +00:00
div.c 2003-10-20 Bob Wilson <bob.wilson@acm.org> 2003-10-20 18:46:38 +00:00
drand48.c
dtoa.c 2006-08-03 J"orn Rennecke <joern.rennecke@st.com> 2006-08-03 16:56:05 +00:00
dtoastub.c
ecvtbuf.c
efgcvt.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:08:03 +00:00
environ.c
envlock.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:08:03 +00:00
eprintf.c
erand48.c
exit.c 2004-09-16 Antony King <antony.king@st.com> 2004-09-16 21:26:51 +00:00
gd_qnan.h 2006-06-22 Jeff Johnston <jjohnstn@redhat.com> 2006-06-22 17:59:52 +00:00
gdtoa-gethex.c * libc/ctype/iswalpha.c: Handle all wchar_t as unicode on 2009-03-24 10:13:27 +00:00
gdtoa-hexnan.c Fix strtod("nan()", ptr). 2008-03-04 18:27:01 +00:00
gdtoa.h 2006-06-22 Jeff Johnston <jjohnstn@redhat.com> 2006-06-22 17:59:52 +00:00
getenv.c
getenv_r.c 2008-09-26 Craig Howland <howland@LGSInnovations.com> 2008-09-26 16:23:58 +00:00
getopt.c 2008-03-07 Jeff Johnston <jjohnstn@redhat.com> 2008-03-07 18:16:35 +00:00
getsubopt.3
getsubopt.c
jrand48.c
l64a.c
labs.c
lcong48.c
ldiv.c 2003-10-20 Bob Wilson <bob.wilson@acm.org> 2003-10-20 18:46:38 +00:00
ldtoa.c 2008-12-11 Craig Howland <howland@LGSInnovations.com> 2008-12-11 17:27:56 +00:00
llabs.c 2003-11-27 Artem B. Bityuckiy <mail_lists@mail.ru> 2003-11-27 19:47:19 +00:00
lldiv.c 2003-11-27 Artem B. Bityuckiy <mail_lists@mail.ru> 2003-11-27 19:47:19 +00:00
local.h * libc/ctype/iswalpha.c: Handle all wchar_t as unicode on 2009-03-24 10:13:27 +00:00
lrand48.c
malign.c
malloc.c 2008-11-19 Jeff Johnston <jjohnstn@redhat.com> 2008-11-19 20:56:22 +00:00
mallocr.c 2006-12-18 Jeff Johnston <jjohnstn@redhat.com> 2006-12-18 20:21:48 +00:00
mbctype.h
mblen.c 2004-04-23 Artem B. Bityuckiy <abitytsky@softminecorp.com> 2004-04-23 21:44:22 +00:00
mblen_r.c 2004-04-23 Artem B. Bityuckiy <abitytsky@softminecorp.com> 2004-04-23 21:44:22 +00:00
mbrlen.c 2004-04-23 Artem B. Bityuckiy <abitytsky@softminecorp.com> 2004-04-23 21:44:22 +00:00
mbrtowc.c 2004-04-23 Artem B. Bityuckiy <abitytsky@softminecorp.com> 2004-04-23 21:44:22 +00:00
mbsinit.c * libc/stdlib/mbrlen.c: Change include order to prevent compiler errors when 2003-12-05 06:13:44 +00:00
mbsnrtowcs.c * libc/include/wchar.h (mbsnrtowcs): Declare. 2009-02-19 09:19:42 +00:00
mbsrtowcs.c * libc/include/wchar.h (mbsnrtowcs): Declare. 2009-02-19 09:19:42 +00:00
mbstowcs.c 2004-04-23 Artem B. Bityuckiy <abitytsky@softminecorp.com> 2004-04-23 21:44:22 +00:00
mbstowcs_r.c * libc/stdlib/mbstowcs_r.c (_mbstowcs_r): Handle NULL destination 2009-03-17 12:16:28 +00:00
mbtowc.c 2004-04-23 Artem B. Bityuckiy <abitytsky@softminecorp.com> 2004-04-23 21:44:22 +00:00
mbtowc_r.c * libc/ctype/iswalpha.c: Handle all wchar_t as unicode on 2009-03-24 10:13:27 +00:00
mlock.c 2005-10-28 Bob Wilson <bob.wilson@acm.org> 2005-10-28 21:21:08 +00:00
mprec.c 2006-06-22 Jeff Johnston <jjohnstn@redhat.com> 2006-06-22 17:59:52 +00:00
mprec.h Fix strict-aliasing issues with _strtod_r and Storeinc. 2008-06-25 01:45:02 +00:00
mrand48.c
msize.c
mstats.c 2005-10-28 Bob Wilson <bob.wilson@acm.org> 2005-10-28 21:21:08 +00:00
mtrim.c
nrand48.c
on_exit.c 2004-09-09 Paul Brook <paul@codesourcery.com> 2004-09-09 19:46:54 +00:00
putenv.c 2004-11-24 Jeff Johnston <jjohnstn@redhat.com> 2004-11-24 22:34:15 +00:00
putenv_r.c 2004-11-24 Jeff Johnston <jjohnstn@redhat.com> 2004-11-24 22:34:15 +00:00
rand.c 2006-09-12 Paul Brook <paul@codesourcery.com> 2006-09-12 17:31:40 +00:00
rand48.c 2005-10-28 Bob Wilson <bob.wilson@acm.org> 2005-10-28 21:21:08 +00:00
rand48.h
rand_r.c
realloc.c
reallocf.c 2008-11-19 Jeff Johnston <jjohnstn@redhat.com> 2008-11-19 20:56:22 +00:00
sb_charsets.c * libc/ctype/iswalpha.c: Handle all wchar_t as unicode on 2009-03-24 10:13:27 +00:00
seed48.c
setenv.c 2008-09-24 Pawel Veselov <pawel.veselov@gmail.com> 2008-09-25 01:23:08 +00:00
setenv_r.c 2008-09-24 Jeff Johnston <jjohnstn@redhat.com> 2008-09-25 03:00:04 +00:00
srand48.c
std.h 2008-12-11 Craig Howland <howland@LGSInnovations.com> 2008-12-11 17:27:56 +00:00
stdlib.tex 2009-02-25 Brooks Moses <brooks@codesourcery.com> 2009-02-25 21:33:18 +00:00
strtod.c * libc/ctype/iswalpha.c: Handle all wchar_t as unicode on 2009-03-24 10:13:27 +00:00
strtol.c
strtoll.c * libc/include/wchar.h: Declare wcstol, wcstoll, wcstoul, 2007-07-06 20:03:28 +00:00
strtoll_r.c
strtoul.c
strtoull.c * libc/include/wchar.h: Declare wcstol, wcstoll, wcstoul, 2007-07-06 20:03:28 +00:00
strtoull_r.c
system.c 2008-12-11 Craig Howland <howland@LGSInnovations.com> 2008-12-11 17:27:56 +00:00
valloc.c
wcrtomb.c 2004-04-23 Artem B. Bityuckiy <abitytsky@softminecorp.com> 2004-04-23 21:44:22 +00:00
wcsnrtombs.c * libc/include/wchar.h (mbsnrtowcs): Declare. 2009-02-19 09:19:42 +00:00
wcsrtombs.c * libc/include/wchar.h (mbsnrtowcs): Declare. 2009-02-19 09:19:42 +00:00
wcstod.c * libc/ctype/iswalpha.c: Handle all wchar_t as unicode on 2009-03-24 10:13:27 +00:00
wcstol.c * libc/include/wchar.h: Declare wcstol, wcstoll, wcstoul, 2007-07-06 20:03:28 +00:00
wcstoll.c * libc/include/wchar.h: Declare wcstol, wcstoll, wcstoul, 2007-07-06 20:03:28 +00:00
wcstoll_r.c * libc/include/wchar.h: Declare wcstol, wcstoll, wcstoul, 2007-07-06 20:03:28 +00:00
wcstombs.c 2004-04-23 Artem B. Bityuckiy <abitytsky@softminecorp.com> 2004-04-23 21:44:22 +00:00
wcstombs_r.c 2007-10-23 Jeff Johnston <jjohnstn@redhat.com> 2007-10-23 19:50:29 +00:00
wcstoul.c 2008-11-27 Craig Howland <howland@LGSInnovations.com> 2008-11-27 20:45:37 +00:00
wcstoull.c 2008-11-24 Craig Howland <howland@LGSInnovations.com> 2008-11-24 21:27:33 +00:00
wcstoull_r.c 2008-11-24 Craig Howland <howland@LGSInnovations.com> 2008-11-24 21:27:33 +00:00
wctob.c Avoid more compiler warnings. 2007-05-29 21:26:59 +00:00
wctomb.c 2009-03-02 Jeff Johnston <jjohnstn@redhat.com> 2009-03-02 23:30:59 +00:00
wctomb_r.c * libc/ctype/iswalpha.c: Handle all wchar_t as unicode on 2009-03-24 10:13:27 +00:00