newlib: limited unicode support

git-svn-id: svn://kolibrios.org@6627 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Sergey Semyonov (Serge) 2016-10-28 02:28:17 +00:00
parent 67d979178e
commit c48b963b16
4 changed files with 25 additions and 11 deletions

View File

@ -78,6 +78,7 @@ CORE_SRCS:= \
ctype/iswupper.c \
ctype/iswxdigit.c \
ctype/isxdigit.c \
ctype/jp2uc.c \
ctype/toascii.c \
ctype/tolower.c \
ctype/toupper.c \

View File

@ -62,6 +62,7 @@ CORE_SRCS = {
"ctype/iswupper.c",
"ctype/iswxdigit.c",
"ctype/isxdigit.c",
"ctype/jp2uc.c",
"ctype/toascii.c",
"ctype/tolower.c",
"ctype/toupper.c",

View File

@ -17,8 +17,6 @@
* printf/scanf enabled */
#define _WANT_IO_C99_FORMATS
#define __DYNAMIC_REENT__
/* long long type support in IO functions like printf/scanf enabled */
#define _WANT_IO_LONG_LONG
@ -36,10 +34,10 @@
/* #undef _WANT_REENT_SMALL */
/* Multibyte supported */
/* #undef _MB_CAPABLE */
#define _MB_CAPABLE
/* MB_LEN_MAX */
#define _MB_LEN_MAX 1
#define _MB_LEN_MAX 2
/* ICONV enabled */
/* #undef _ICONV_ENABLED */
@ -64,6 +62,21 @@
/* True if long double supported and it is equal to double. */
/* #undef _LDBL_EQ_DBL */
/* Define if wide char orientation is supported. */
#define _WIDE_ORIENT 1
/* Define if unbuffered stream file optimization is supported. */
#define _UNBUF_STREAM_OPT 1
/* Define if lite version of exit supported. */
/* #undef _LITE_EXIT */
/* Define if declare atexit data as global. */
/* #undef _REENT_GLOBAL_ATEXIT */
/* Define if small footprint nano-formatted-IO implementation used. */
/* #undef _NANO_FORMATTED_IO */
/*
* Iconv encodings enabled ("to" direction)
*/
@ -172,6 +185,8 @@
/* #undef _ICONV_FROM_ENCODING_WIN_1257 */
/* #undef _ICONV_FROM_ENCODING_WIN_1258 */
#define __DYNAMIC_REENT__
#ifdef STATIC_LIBC
#define BUILD_LIBC
#endif

View File

@ -262,8 +262,6 @@ extern _READ_WRITE_RETURN_TYPE _EXFUN(__swrite64,(struct _reent *, void *,
*/
#define ORIENT(fp,ori) \
do \
{ \
if (!((fp)->_flags & __SORD)) \
{ \
(fp)->_flags |= __SORD; \
if (ori > 0) \
@ -271,7 +269,6 @@ extern _READ_WRITE_RETURN_TYPE _EXFUN(__swrite64,(struct _reent *, void *,
else \
(fp)->_flags2 &= ~__SWID; \
} \
} \
while (0)
#else
#define ORIENT(fp,ori)