diff options
author | Rich Felker <dalias@aerifal.cx> | 2013-07-22 13:05:41 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2013-07-22 13:05:41 -0400 |
commit | c4dd0c98bae8e3583f68ba5b30db491055ab2322 (patch) | |
tree | 7b64cb99e6bc4cc9faff8207d8f78a5e72fb58d2 /arch | |
parent | 9448b0513e2eec020fbca9c10412b83df5027a16 (diff) | |
download | musl-c4dd0c98bae8e3583f68ba5b30db491055ab2322.tar.gz musl-c4dd0c98bae8e3583f68ba5b30db491055ab2322.tar.xz musl-c4dd0c98bae8e3583f68ba5b30db491055ab2322.zip |
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.
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/bits/alltypes.h.in | 2 | ||||
-rw-r--r-- | arch/i386/bits/alltypes.h.in | 2 | ||||
-rw-r--r-- | arch/microblaze/bits/alltypes.h.in | 2 | ||||
-rw-r--r-- | arch/mips/bits/alltypes.h.in | 2 | ||||
-rw-r--r-- | arch/powerpc/bits/alltypes.h.in | 2 | ||||
-rw-r--r-- | arch/x86_64/bits/alltypes.h.in | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/arch/arm/bits/alltypes.h.in b/arch/arm/bits/alltypes.h.in index c3228b55..764a2469 100644 --- a/arch/arm/bits/alltypes.h.in +++ b/arch/arm/bits/alltypes.h.in @@ -7,7 +7,7 @@ TYPEDEF __builtin_va_list __isoc_va_list; #ifndef __cplusplus TYPEDEF unsigned wchar_t; #endif -TYPEDEF int wint_t; +TYPEDEF unsigned wint_t; TYPEDEF float float_t; TYPEDEF double double_t; diff --git a/arch/i386/bits/alltypes.h.in b/arch/i386/bits/alltypes.h.in index ea6471ed..04fd1cb4 100644 --- a/arch/i386/bits/alltypes.h.in +++ b/arch/i386/bits/alltypes.h.in @@ -16,7 +16,7 @@ TYPEDEF __WCHAR_TYPE__ wchar_t; TYPEDEF long wchar_t; #endif #endif -TYPEDEF long wint_t; +TYPEDEF unsigned wint_t; #if defined(__FLT_EVAL_METHOD__) && __FLT_EVAL_METHOD__ == 0 TYPEDEF float float_t; diff --git a/arch/microblaze/bits/alltypes.h.in b/arch/microblaze/bits/alltypes.h.in index f0ab35fa..eb842aaf 100644 --- a/arch/microblaze/bits/alltypes.h.in +++ b/arch/microblaze/bits/alltypes.h.in @@ -7,7 +7,7 @@ TYPEDEF __builtin_va_list __isoc_va_list; #ifndef __cplusplus TYPEDEF int wchar_t; #endif -TYPEDEF int wint_t; +TYPEDEF unsigned wint_t; TYPEDEF float float_t; TYPEDEF double double_t; diff --git a/arch/mips/bits/alltypes.h.in b/arch/mips/bits/alltypes.h.in index f0ab35fa..eb842aaf 100644 --- a/arch/mips/bits/alltypes.h.in +++ b/arch/mips/bits/alltypes.h.in @@ -7,7 +7,7 @@ TYPEDEF __builtin_va_list __isoc_va_list; #ifndef __cplusplus TYPEDEF int wchar_t; #endif -TYPEDEF int wint_t; +TYPEDEF unsigned wint_t; TYPEDEF float float_t; TYPEDEF double double_t; diff --git a/arch/powerpc/bits/alltypes.h.in b/arch/powerpc/bits/alltypes.h.in index 928ce70b..1c3fe283 100644 --- a/arch/powerpc/bits/alltypes.h.in +++ b/arch/powerpc/bits/alltypes.h.in @@ -7,7 +7,7 @@ TYPEDEF __builtin_va_list __isoc_va_list; #ifndef __cplusplus TYPEDEF long wchar_t; #endif -TYPEDEF int wint_t; +TYPEDEF unsigned wint_t; TYPEDEF float float_t; TYPEDEF double double_t; diff --git a/arch/x86_64/bits/alltypes.h.in b/arch/x86_64/bits/alltypes.h.in index e931d114..b9bff866 100644 --- a/arch/x86_64/bits/alltypes.h.in +++ b/arch/x86_64/bits/alltypes.h.in @@ -7,7 +7,7 @@ TYPEDEF __builtin_va_list __isoc_va_list; #ifndef __cplusplus TYPEDEF int wchar_t; #endif -TYPEDEF int wint_t; +TYPEDEF unsigned wint_t; #if defined(__FLT_EVAL_METHOD__) && __FLT_EVAL_METHOD__ == 2 TYPEDEF long double float_t; |