musl/src/multibyte
Rich Felker e89cfe51d2 fix aliasing violations in mbtowc and mbrtowc
these functions were setting wc to point to wchar_t aliasing itself as
a "cheap" way to support null wc arguments. doing so was anything but
cheap, since even without the aliasing violation, it would limit the
compiler's ability to optimize.

making wc point to a dummy object is equally easy and does not suffer
from the above problems.
2014-07-01 18:27:19 -04:00
..
btowc.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
internal.c include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00
internal.h include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00
mblen.c include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00
mbrlen.c include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00
mbrtowc.c fix aliasing violations in mbtowc and mbrtowc 2014-07-01 18:27:19 -04:00
mbsinit.c include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00
mbsnrtowcs.c include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00
mbsrtowcs.c include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00
mbstowcs.c cleanup mbstowcs wrapper 2013-04-04 14:53:53 -04:00
mbtowc.c fix aliasing violations in mbtowc and mbrtowc 2014-07-01 18:27:19 -04:00
wcrtomb.c include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00
wcsnrtombs.c include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00
wcsrtombs.c fix incorrect end pointer in some cases when wcsrtombs stops early 2014-06-02 16:21:47 -04:00
wcstombs.c cleanup wcstombs 2013-04-04 14:55:42 -04:00
wctob.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
wctomb.c include cleanups: remove unused headers and add feature test macros 2013-12-12 05:09:18 +00:00