This is the mail archive of the mailing list for the newlib project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH newlib]New configuration option disable wide orientation in Newlib

C99 introduces wide orientation which is implemented in Newlib. This patch
introduces new option "--disable-newlib-wide-orient" allowing user to
disable it and reduce foot-print of binary. It also skips compilation of
wide orientation related files/functions. Is it OK?

The default behavior is not changed unless "--disable-*" option is specified
explicitly when configuring.
Any comments are welcome.


2013-04-11  Bin Cheng  <>
	* acconfig.h (_WCHAR_ORIENT): Undef
	* newlib.hin (_WCHAR_ORIENT): Undef
	* (--enable-newlib-wchar-orient): New option.
	* configure: Regenerated.
	* libc/ (--enable-newlib-wchar-orient): New option.
	* libc/configure: Regenerated.
	* libc/stdio/ (NEWLIB_WIDE_ORIENT): Use.
	* libc/stdio/ Regenerated.
	* libc/stdio/local.h (ORIENT): Use _WCHAR_ORIENT to control
	the definition. Add alternative definition.
	* libc/stdio/vfprintf.c (__sfputs_r, __sprint_r): Use _WCHAR_ORIENT
        to control the wide char output.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]