change wint_t to unsigned
authorRich Felker <dalias@aerifal.cx>
Mon, 22 Jul 2013 17:05:41 +0000 (13:05 -0400)
committerRich Felker <dalias@aerifal.cx>
Mon, 22 Jul 2013 17:05:41 +0000 (13:05 -0400)
commitc4dd0c98bae8e3583f68ba5b30db491055ab2322
tree7b64cb99e6bc4cc9faff8207d8f78a5e72fb58d2
parent9448b0513e2eec020fbca9c10412b83df5027a16
change wint_t to unsigned

aside from the obvious C++ ABI purpose for this change, it also brings
musl into alignment with the compiler's idea of the definition of
wint_t (use in -Wformat), and makes the situation less awkward on ARM,
where wchar_t is unsigned.

internal code using wint_t and WEOF was checked against this change,
and while a few cases of storing WEOF into wchar_t were found, they
all seem to operate properly with the natural conversion from unsigned
to signed.
arch/arm/bits/alltypes.h.in
arch/i386/bits/alltypes.h.in
arch/microblaze/bits/alltypes.h.in
arch/mips/bits/alltypes.h.in
arch/powerpc/bits/alltypes.h.in
arch/x86_64/bits/alltypes.h.in
include/stdint.h
include/wchar.h
include/wctype.h