2006-01-21 06:42:46 +08:00
|
|
|
#ifndef __NEWLIB_H__
|
|
|
|
|
|
|
|
#define __NEWLIB_H__ 1
|
|
|
|
@TOP@
|
|
|
|
|
|
|
|
/* EL/IX level */
|
|
|
|
#undef _ELIX_LEVEL
|
|
|
|
|
|
|
|
/* Newlib version */
|
|
|
|
#undef _NEWLIB_VERSION
|
|
|
|
|
2007-05-12 04:09:00 +08:00
|
|
|
/* C99 formats support (such as %a, %zu, ...) in IO functions like
|
|
|
|
* printf/scanf enabled */
|
|
|
|
#undef _WANT_IO_C99_FORMATS
|
|
|
|
|
2006-01-21 06:42:46 +08:00
|
|
|
/* long long type support in IO functions like printf/scanf enabled */
|
|
|
|
#undef _WANT_IO_LONG_LONG
|
|
|
|
|
|
|
|
/* long double type support in IO functions like printf/scanf enabled */
|
|
|
|
#undef _WANT_IO_LONG_DOUBLE
|
|
|
|
|
|
|
|
/* Positional argument support in printf functions enabled. */
|
|
|
|
#undef _WANT_IO_POS_ARGS
|
|
|
|
|
2007-03-16 05:32:13 +08:00
|
|
|
/* Optional reentrant struct support. Used mostly on platforms with
|
|
|
|
very restricted storage. */
|
|
|
|
#undef _WANT_REENT_SMALL
|
|
|
|
|
2019-10-08 03:29:33 +08:00
|
|
|
/* Verify _REENT_CHECK macros allocate memory successfully. */
|
|
|
|
#undef _REENT_CHECK_VERIFY
|
|
|
|
|
2006-01-21 06:42:46 +08:00
|
|
|
/* Multibyte supported */
|
|
|
|
#undef _MB_CAPABLE
|
|
|
|
|
|
|
|
/* MB_LEN_MAX */
|
|
|
|
#undef _MB_LEN_MAX
|
|
|
|
|
|
|
|
/* ICONV enabled */
|
|
|
|
#undef _ICONV_ENABLED
|
|
|
|
|
|
|
|
/* Enable ICONV external CCS files loading capabilities */
|
|
|
|
#undef _ICONV_ENABLE_EXTERNAL_CCS
|
|
|
|
|
|
|
|
/* Define if the linker supports .preinit_array/.init_array/.fini_array
|
|
|
|
* sections. */
|
|
|
|
#undef HAVE_INITFINI_ARRAY
|
|
|
|
|
2006-03-21 08:57:34 +08:00
|
|
|
/* True if atexit() may dynamically allocate space for cleanup
|
|
|
|
functions. */
|
|
|
|
#undef _ATEXIT_DYNAMIC_ALLOC
|
|
|
|
|
2006-01-21 06:42:46 +08:00
|
|
|
/* Define if the compiler supports aliasing an array to an address. */
|
|
|
|
#undef _HAVE_ARRAY_ALIASING
|
2009-08-19 03:57:59 +08:00
|
|
|
|
|
|
|
/* Define if the platform supports long double type. */
|
|
|
|
#undef _HAVE_LONG_DOUBLE
|
|
|
|
|
2013-12-11 02:57:30 +08:00
|
|
|
/* Define if compiler supports -fno-tree-loop-distribute-patterns. */
|
|
|
|
#undef _HAVE_CC_INHIBIT_LOOP_TO_LIBCALL
|
|
|
|
|
2009-08-19 03:57:59 +08:00
|
|
|
/* Define if the platform long double type is equal to double. */
|
|
|
|
#undef _LDBL_EQ_DBL
|
2013-03-27 17:38:39 +08:00
|
|
|
|
|
|
|
/* Define if ivo supported in streamio. */
|
|
|
|
#undef _FVWRITE_IN_STREAMIO
|
2009-08-19 03:57:59 +08:00
|
|
|
|
2013-04-11 02:47:46 +08:00
|
|
|
/* Define if fseek functions support seek optimization. */
|
|
|
|
#undef _FSEEK_OPTIMIZATION
|
|
|
|
|
2013-04-12 20:05:31 +08:00
|
|
|
/* Define if wide char orientation is supported. */
|
|
|
|
#undef _WIDE_ORIENT
|
|
|
|
|
2013-06-19 23:58:50 +08:00
|
|
|
/* Define if unbuffered stream file optimization is supported. */
|
|
|
|
#undef _UNBUF_STREAM_OPT
|
|
|
|
|
2013-07-03 05:30:57 +08:00
|
|
|
/* Define if enable lite version of exit. */
|
|
|
|
#undef _LITE_EXIT
|
|
|
|
|
2014-07-04 Bin Cheng <bin.cheng@arm.com>
* README (--enable-newlib-nano-formatted-io): Describe.
* acconfig.h (_NANO_FORMATTED_IO): Undef.
* newlib.hin (_NANO_FORMATTED_IO): Undef.
* configure.in (--enable-newlib-nano-formatted-io): New option.
* configure: Regenerated.
* libc/configure.in (--enable-newlib-nano-formatted-io): New option.
* libc/configure: Regenerated.
* libc/stdio/Makefile.am (NEWLIB_NANO_FORMATTED_IO): Support new
configuration option.
* libc/stdio/Makefile.in: Regenerated.
* libc/stdio/asnprintf.c (_asniprintf_r, asniprintf): Use
_NANO_FORMATTED_IO to declare alias prototypes.
* libc/stdio/asprintf.c (_asiprintf_r, asiprintf): Ditto.
* libc/stdio/dprintf.c (_diprintf_r, diprintf): Ditto.
* libc/stdio/fprintf.c (_fiprintf_r, fiprintf): Ditto.
* libc/stdio/fscanf.c (fiscanf, _fiscanf_r): Ditto.
* libc/stdio/printf.c (_iprintf_r, iprintf): Ditto.
* libc/stdio/scanf.c (iscanf, _iscanf_r): Ditto.
* libc/stdio/snprintf.c (_sniprintf_r, sniprintf): Ditto.
* libc/stdio/sprintf.c (_siprintf_r, siprintf): Ditto.
* libc/stdio/sscanf.c (siscanf, _siscanf_r): Ditto.
* libc/stdio/vasnprintf.c (_vasniprintf_r, vasniprintf): Ditto.
* libc/stdio/vasprintf.c (vasiprintf, _vasiprintf_r): Ditto.
* libc/stdio/vdprintf.c (_vdiprintf_r, vdiprintf): Ditto.
* libc/stdio/vprintf.c (viprintf, _viprintf_r): Ditto.
* libc/stdio/vscanf.c (viscanf, _viscanf_r): Ditto.
* libc/stdio/vsnprintf.c (vsniprintf, _vsniprintf_r): Ditto.
* libc/stdio/vsprintf.c (vsiprintf, _vsiprintf_r): Ditto.
* libc/stdio/vsscanf.c (vsiscanf, _vsiscanf_r): Ditto.
* libc/stdio/nano-vfprintf.c: New file.
* libc/stdio/nano-vfprintf_float.c: New file.
* libc/stdio/nano-vfprintf_i.c: New file.
* libc/stdio/nano-vfprintf_local.h: New file.
* libc/stdio/nano-vfscanf.c: New file.
* libc/stdio/nano-vfscanf_float.c: New file.
* libc/stdio/nano-vfscanf_i.c: New file.
* libc/stdio/nano-vfscanf_local.h: New file.
2014-07-05 01:21:45 +08:00
|
|
|
/* Define if nano version formatted IO is used. */
|
|
|
|
#undef _NANO_FORMATTED_IO
|
|
|
|
|
2006-01-21 06:42:46 +08:00
|
|
|
@BOTTOM@
|
|
|
|
/*
|
|
|
|
* Iconv encodings enabled ("to" direction)
|
|
|
|
*/
|
|
|
|
#undef _ICONV_TO_ENCODING_BIG5
|
|
|
|
#undef _ICONV_TO_ENCODING_CP775
|
|
|
|
#undef _ICONV_TO_ENCODING_CP850
|
|
|
|
#undef _ICONV_TO_ENCODING_CP852
|
|
|
|
#undef _ICONV_TO_ENCODING_CP855
|
|
|
|
#undef _ICONV_TO_ENCODING_CP866
|
|
|
|
#undef _ICONV_TO_ENCODING_EUC_JP
|
|
|
|
#undef _ICONV_TO_ENCODING_EUC_TW
|
|
|
|
#undef _ICONV_TO_ENCODING_EUC_KR
|
|
|
|
#undef _ICONV_TO_ENCODING_ISO_8859_1
|
|
|
|
#undef _ICONV_TO_ENCODING_ISO_8859_10
|
|
|
|
#undef _ICONV_TO_ENCODING_ISO_8859_11
|
|
|
|
#undef _ICONV_TO_ENCODING_ISO_8859_13
|
|
|
|
#undef _ICONV_TO_ENCODING_ISO_8859_14
|
|
|
|
#undef _ICONV_TO_ENCODING_ISO_8859_15
|
|
|
|
#undef _ICONV_TO_ENCODING_ISO_8859_2
|
|
|
|
#undef _ICONV_TO_ENCODING_ISO_8859_3
|
|
|
|
#undef _ICONV_TO_ENCODING_ISO_8859_4
|
|
|
|
#undef _ICONV_TO_ENCODING_ISO_8859_5
|
|
|
|
#undef _ICONV_TO_ENCODING_ISO_8859_6
|
|
|
|
#undef _ICONV_TO_ENCODING_ISO_8859_7
|
|
|
|
#undef _ICONV_TO_ENCODING_ISO_8859_8
|
|
|
|
#undef _ICONV_TO_ENCODING_ISO_8859_9
|
|
|
|
#undef _ICONV_TO_ENCODING_ISO_IR_111
|
|
|
|
#undef _ICONV_TO_ENCODING_KOI8_R
|
|
|
|
#undef _ICONV_TO_ENCODING_KOI8_RU
|
|
|
|
#undef _ICONV_TO_ENCODING_KOI8_U
|
|
|
|
#undef _ICONV_TO_ENCODING_KOI8_UNI
|
|
|
|
#undef _ICONV_TO_ENCODING_UCS_2
|
|
|
|
#undef _ICONV_TO_ENCODING_UCS_2_INTERNAL
|
|
|
|
#undef _ICONV_TO_ENCODING_UCS_2BE
|
|
|
|
#undef _ICONV_TO_ENCODING_UCS_2LE
|
|
|
|
#undef _ICONV_TO_ENCODING_UCS_4
|
|
|
|
#undef _ICONV_TO_ENCODING_UCS_4_INTERNAL
|
|
|
|
#undef _ICONV_TO_ENCODING_UCS_4BE
|
|
|
|
#undef _ICONV_TO_ENCODING_UCS_4LE
|
|
|
|
#undef _ICONV_TO_ENCODING_US_ASCII
|
|
|
|
#undef _ICONV_TO_ENCODING_UTF_16
|
|
|
|
#undef _ICONV_TO_ENCODING_UTF_16BE
|
|
|
|
#undef _ICONV_TO_ENCODING_UTF_16LE
|
|
|
|
#undef _ICONV_TO_ENCODING_UTF_8
|
|
|
|
#undef _ICONV_TO_ENCODING_WIN_1250
|
|
|
|
#undef _ICONV_TO_ENCODING_WIN_1251
|
|
|
|
#undef _ICONV_TO_ENCODING_WIN_1252
|
|
|
|
#undef _ICONV_TO_ENCODING_WIN_1253
|
|
|
|
#undef _ICONV_TO_ENCODING_WIN_1254
|
|
|
|
#undef _ICONV_TO_ENCODING_WIN_1255
|
|
|
|
#undef _ICONV_TO_ENCODING_WIN_1256
|
|
|
|
#undef _ICONV_TO_ENCODING_WIN_1257
|
|
|
|
#undef _ICONV_TO_ENCODING_WIN_1258
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Iconv encodings enabled ("from" direction)
|
|
|
|
*/
|
|
|
|
#undef _ICONV_FROM_ENCODING_BIG5
|
|
|
|
#undef _ICONV_FROM_ENCODING_CP775
|
|
|
|
#undef _ICONV_FROM_ENCODING_CP850
|
|
|
|
#undef _ICONV_FROM_ENCODING_CP852
|
|
|
|
#undef _ICONV_FROM_ENCODING_CP855
|
|
|
|
#undef _ICONV_FROM_ENCODING_CP866
|
|
|
|
#undef _ICONV_FROM_ENCODING_EUC_JP
|
|
|
|
#undef _ICONV_FROM_ENCODING_EUC_TW
|
|
|
|
#undef _ICONV_FROM_ENCODING_EUC_KR
|
|
|
|
#undef _ICONV_FROM_ENCODING_ISO_8859_1
|
|
|
|
#undef _ICONV_FROM_ENCODING_ISO_8859_10
|
|
|
|
#undef _ICONV_FROM_ENCODING_ISO_8859_11
|
|
|
|
#undef _ICONV_FROM_ENCODING_ISO_8859_13
|
|
|
|
#undef _ICONV_FROM_ENCODING_ISO_8859_14
|
|
|
|
#undef _ICONV_FROM_ENCODING_ISO_8859_15
|
|
|
|
#undef _ICONV_FROM_ENCODING_ISO_8859_2
|
|
|
|
#undef _ICONV_FROM_ENCODING_ISO_8859_3
|
|
|
|
#undef _ICONV_FROM_ENCODING_ISO_8859_4
|
|
|
|
#undef _ICONV_FROM_ENCODING_ISO_8859_5
|
|
|
|
#undef _ICONV_FROM_ENCODING_ISO_8859_6
|
|
|
|
#undef _ICONV_FROM_ENCODING_ISO_8859_7
|
|
|
|
#undef _ICONV_FROM_ENCODING_ISO_8859_8
|
|
|
|
#undef _ICONV_FROM_ENCODING_ISO_8859_9
|
|
|
|
#undef _ICONV_FROM_ENCODING_ISO_IR_111
|
|
|
|
#undef _ICONV_FROM_ENCODING_KOI8_R
|
|
|
|
#undef _ICONV_FROM_ENCODING_KOI8_RU
|
|
|
|
#undef _ICONV_FROM_ENCODING_KOI8_U
|
|
|
|
#undef _ICONV_FROM_ENCODING_KOI8_UNI
|
|
|
|
#undef _ICONV_FROM_ENCODING_UCS_2
|
|
|
|
#undef _ICONV_FROM_ENCODING_UCS_2_INTERNAL
|
|
|
|
#undef _ICONV_FROM_ENCODING_UCS_2BE
|
|
|
|
#undef _ICONV_FROM_ENCODING_UCS_2LE
|
|
|
|
#undef _ICONV_FROM_ENCODING_UCS_4
|
|
|
|
#undef _ICONV_FROM_ENCODING_UCS_4_INTERNAL
|
|
|
|
#undef _ICONV_FROM_ENCODING_UCS_4BE
|
|
|
|
#undef _ICONV_FROM_ENCODING_UCS_4LE
|
|
|
|
#undef _ICONV_FROM_ENCODING_US_ASCII
|
|
|
|
#undef _ICONV_FROM_ENCODING_UTF_16
|
|
|
|
#undef _ICONV_FROM_ENCODING_UTF_16BE
|
|
|
|
#undef _ICONV_FROM_ENCODING_UTF_16LE
|
|
|
|
#undef _ICONV_FROM_ENCODING_UTF_8
|
|
|
|
#undef _ICONV_FROM_ENCODING_WIN_1250
|
|
|
|
#undef _ICONV_FROM_ENCODING_WIN_1251
|
|
|
|
#undef _ICONV_FROM_ENCODING_WIN_1252
|
|
|
|
#undef _ICONV_FROM_ENCODING_WIN_1253
|
|
|
|
#undef _ICONV_FROM_ENCODING_WIN_1254
|
|
|
|
#undef _ICONV_FROM_ENCODING_WIN_1255
|
|
|
|
#undef _ICONV_FROM_ENCODING_WIN_1256
|
|
|
|
#undef _ICONV_FROM_ENCODING_WIN_1257
|
|
|
|
#undef _ICONV_FROM_ENCODING_WIN_1258
|
|
|
|
|
|
|
|
#endif /* !__NEWLIB_H__ */
|