diff --git a/arch/8051/include/types.h b/arch/8051/include/types.h index 7495513b2cb..2d195631a1e 100644 --- a/arch/8051/include/types.h +++ b/arch/8051/include/types.h @@ -67,20 +67,20 @@ * long long and double are not supported. */ -typedef char _int8_t; +typedef signed char _int8_t; typedef unsigned char _uint8_t; -typedef int _int16_t; +typedef signed int _int16_t; typedef unsigned int _uint16_t; -typedef long _int32_t; +typedef signed long _int32_t; typedef unsigned long _uint32_t; /* For SDCC, a Generic pointer is 3 bytes in length with the * first byte holding data space information. */ -typedef long _intptr_t; +typedef signed long _intptr_t; typedef unsigned long _uintptr_t; /* This is the size of the interrupt state save returned by diff --git a/arch/arm/include/types.h b/arch/arm/include/types.h index 9a45fcb7544..c3471ca59b5 100644 --- a/arch/arm/include/types.h +++ b/arch/arm/include/types.h @@ -63,22 +63,22 @@ * files */ -typedef char _int8_t; +typedef signed char _int8_t; typedef unsigned char _uint8_t; -typedef short _int16_t; +typedef signed short _int16_t; typedef unsigned short _uint16_t; -typedef int _int32_t; +typedef signed int _int32_t; typedef unsigned int _uint32_t; -typedef long long _int64_t; +typedef signed long long _int64_t; typedef unsigned long long _uint64_t; #define __INT64_DEFINED /* A pointer is 4 bytes */ -typedef int _intptr_t; +typedef signed int _intptr_t; typedef unsigned int _uintptr_t; /* This is the size of the interrupt state save returned by irqsave(). For @@ -87,9 +87,9 @@ typedef unsigned int _uintptr_t; */ #ifdef __thumb2__ -typedef unsigned short irqstate_t; +typedef unsigned short irqstate_t; #else /* __thumb2__ */ -typedef unsigned int irqstate_t; +typedef unsigned int irqstate_t; #endif /* __thumb2__ */ #endif /* __ASSEMBLY__ */ diff --git a/arch/avr/include/types.h b/arch/avr/include/types.h index fd8c394c41d..c93e70df4ca 100644 --- a/arch/avr/include/types.h +++ b/arch/avr/include/types.h @@ -63,27 +63,27 @@ * files */ -typedef char _int8_t; +typedef signed char _int8_t; typedef unsigned char _uint8_t; -typedef short _int16_t; +typedef signed short _int16_t; typedef unsigned short _uint16_t; -typedef int _int32_t; +typedef signed int _int32_t; typedef unsigned int _uint32_t; -typedef long long _int64_t; +typedef signed long long _int64_t; typedef unsigned long long _uint64_t; #define __INT64_DEFINED /* A pointer is 4 bytes */ -typedef int _intptr_t; +typedef signed int _intptr_t; typedef unsigned int _uintptr_t; /* This is the size of the interrupt state save returned by irqsave(). */ -typedef unsigned int irqstate_t; +typedef unsigned int irqstate_t; #endif /* __ASSEMBLY__ */ diff --git a/arch/hc/include/hc12/types.h b/arch/hc/include/hc12/types.h index f29be63940b..d676e3d27a9 100755 --- a/arch/hc/include/hc12/types.h +++ b/arch/hc/include/hc12/types.h @@ -63,9 +63,9 @@ * files */ -typedef char _int8_t; +typedef signed char _int8_t; typedef unsigned char _uint8_t; -typedef short _int16_t; +typedef signed short _int16_t; typedef unsigned short _uint16_t; /* Normally, mc68hc1x code is compiled with the -mshort option @@ -74,20 +74,20 @@ typedef unsigned short _uint16_t; */ # if __INT__ == 16 -typedef long _int32_t; +typedef signed long _int32_t; typedef unsigned long _uint32_t; #else -typedef int _int32_t; +typedef signed int _int32_t; typedef unsigned int _uint32_t; #endif -typedef long long _int64_t; +typedef signed long long _int64_t; typedef unsigned long long _uint64_t; #define __INT64_DEFINED /* A pointer is two bytes */ -typedef short _intptr_t; +typedef signed short _intptr_t; typedef unsigned short _uintptr_t; /* This is the size of the interrupt state save returned by irqsave()*/ diff --git a/arch/hc/include/hcs12/types.h b/arch/hc/include/hcs12/types.h index 71b311fb793..739ddef2157 100755 --- a/arch/hc/include/hcs12/types.h +++ b/arch/hc/include/hcs12/types.h @@ -63,10 +63,10 @@ * files */ -typedef char _int8_t; +typedef signed char _int8_t; typedef unsigned char _uint8_t; -typedef short _int16_t; +typedef signed short _int16_t; typedef unsigned short _uint16_t; /* Normally, mc68hc1x code is compiled with the -mshort option @@ -75,20 +75,20 @@ typedef unsigned short _uint16_t; */ # if __INT__ == 16 -typedef long _int32_t; +typedef signed long _int32_t; typedef unsigned long _uint32_t; #else -typedef int _int32_t; +typedef signed int _int32_t; typedef unsigned int _uint32_t; #endif -typedef long long _int64_t; +typedef signed long long _int64_t; typedef unsigned long long _uint64_t; #define __INT64_DEFINED /* A pointer is two bytes */ -typedef short _intptr_t; +typedef signed short _intptr_t; typedef unsigned short _uintptr_t; /* This is the size of the interrupt state save returned by irqsave()*/ diff --git a/arch/sh/include/m16c/types.h b/arch/sh/include/m16c/types.h index d1481286001..4f84a311327 100644 --- a/arch/sh/include/m16c/types.h +++ b/arch/sh/include/m16c/types.h @@ -65,22 +65,22 @@ * int is 16-bits and long is 32-bits */ -typedef char _int8_t; +typedef signed char _int8_t; typedef unsigned char _uint8_t; -typedef int _int16_t; +typedef signed int _int16_t; typedef unsigned int _uint16_t; -typedef long _int32_t; +typedef signed long _int32_t; typedef unsigned long _uint32_t; -typedef long long _int64_t; +typedef signed long long _int64_t; typedef unsigned long long _uint64_t; #define __INT64_DEFINED /* A pointer is 2 bytes */ -typedef unsigned int _intptr_t; +typedef signed int _intptr_t; typedef unsigned int _uintptr_t; /* This is the size of the interrupt state save returned by diff --git a/arch/sh/include/sh1/types.h b/arch/sh/include/sh1/types.h index 79ed1a18193..ac0769ecd50 100644 --- a/arch/sh/include/sh1/types.h +++ b/arch/sh/include/sh1/types.h @@ -63,22 +63,22 @@ * files */ -typedef char _int8_t; +typedef signed char _int8_t; typedef unsigned char _uint8_t; -typedef short _int16_t; +typedef signed short _int16_t; typedef unsigned short _uint16_t; -typedef int _int32_t; +typedef signed int _int32_t; typedef unsigned int _uint32_t; -typedef long long _int64_t; +typedef signed long long _int64_t; typedef unsigned long long _uint64_t; #define __INT64_DEFINED /* A pointer is 4 bytes */ -typedef int _intptr_t; +typedef signed int _intptr_t; typedef unsigned int _uintptr_t; /* This is the size of the interrupt state save returned by diff --git a/arch/sim/include/types.h b/arch/sim/include/types.h index 214fbb91b97..5b58264e6cd 100644 --- a/arch/sim/include/types.h +++ b/arch/sim/include/types.h @@ -63,22 +63,22 @@ * files */ -typedef char _int8_t; +typedef signed char _int8_t; typedef unsigned char _uint8_t; -typedef short _int16_t; +typedef signed short _int16_t; typedef unsigned short _uint16_t; -typedef int _int32_t; +typedef signed int _int32_t; typedef unsigned int _uint32_t; -typedef long long _int64_t; +typedef signed long long _int64_t; typedef unsigned long long _uint64_t; #define __INT64_DEFINED /* A pointer is 4 bytes */ -typedef unsigned int _intptr_t; +typedef signed int _intptr_t; typedef unsigned int _uintptr_t; /* This is the size of the interrupt state save returned by diff --git a/arch/x86/include/i486/types.h b/arch/x86/include/i486/types.h index 88379fd0ffd..d6f25f3e0e1 100755 --- a/arch/x86/include/i486/types.h +++ b/arch/x86/include/i486/types.h @@ -64,22 +64,22 @@ * files */ -typedef char _int8_t; +typedef signed char _int8_t; typedef unsigned char _uint8_t; -typedef short _int16_t; +typedef signed short _int16_t; typedef unsigned short _uint16_t; -typedef int _int32_t; +typedef signed int _int32_t; typedef unsigned int _uint32_t; -typedef long long _int64_t; +typedef signed long long _int64_t; typedef unsigned long long _uint64_t; #define __INT64_DEFINED /* A pointer is 4 bytes */ -typedef unsigned int _intptr_t; +typedef signed int _intptr_t; typedef unsigned int _uintptr_t; /* This is the size of the interrupt state save returned by diff --git a/arch/z16/include/types.h b/arch/z16/include/types.h index b83a6070de1..536cb52a74c 100644 --- a/arch/z16/include/types.h +++ b/arch/z16/include/types.h @@ -63,18 +63,18 @@ * files */ -typedef char _int8_t; +typedef signed char _int8_t; typedef unsigned char _uint8_t; -typedef short _int16_t; +typedef signed short _int16_t; typedef unsigned short _uint16_t; -typedef int _int32_t; +typedef signed int _int32_t; typedef unsigned int _uint32_t; /* A pointer is 4 bytes */ -typedef int _intptr_t; +typedef signed int _intptr_t; typedef unsigned int _uintptr_t; /* This is the size of the interrupt state save returned by diff --git a/arch/z80/include/ez80/types.h b/arch/z80/include/ez80/types.h index 4ca48e69731..f3569d9baa3 100644 --- a/arch/z80/include/ez80/types.h +++ b/arch/z80/include/ez80/types.h @@ -72,17 +72,17 @@ * float - 32-bits */ -typedef char _int8_t; +typedef signed char _int8_t; typedef unsigned char _uint8_t; -typedef short _int16_t; +typedef signed short _int16_t; typedef unsigned short _uint16_t; -typedef int _int24_t; +typedef signed int _int24_t; typedef unsigned int _uint24_t; #define __INT24_DEFINED -typedef long _int32_t; +typedef signed long _int32_t; typedef unsigned long _uint32_t; /* A pointer is 2 or 3 bytes, depending upon if the ez80 is in z80 @@ -93,10 +93,10 @@ typedef unsigned long _uint32_t; */ #ifdef CONFIG_EZ80_Z80MODE -typedef short _intptr_t; +typedef signed short _intptr_t; typedef unsigned short _uintptr_t; #else -typedef int _intptr_t; +typedef signed int _intptr_t; typedef unsigned int _uintptr_t; #endif diff --git a/arch/z80/include/z8/types.h b/arch/z80/include/z8/types.h index 0e269a5de3d..324ca236c4c 100644 --- a/arch/z80/include/z8/types.h +++ b/arch/z80/include/z8/types.h @@ -79,18 +79,18 @@ * rom pointer - 16-bits */ -typedef char _int8_t; +typedef signed char _int8_t; typedef unsigned char _uint8_t; -typedef int _int16_t; +typedef signed int _int16_t; typedef unsigned int _uint16_t; -typedef long _int32_t; +typedef signed long _int32_t; typedef unsigned long _uint32_t; /* A pointer is 2 bytes */ -typedef unsigned int _intptr_t; +typedef signed int _intptr_t; typedef unsigned int _uintptr_t; /* This is the size of the interrupt state save returned by irqsave() */ diff --git a/arch/z80/include/z80/types.h b/arch/z80/include/z80/types.h index 652ea5adf39..42bba5ac803 100644 --- a/arch/z80/include/z80/types.h +++ b/arch/z80/include/z80/types.h @@ -72,18 +72,18 @@ * space information. */ -typedef char _int8_t; +typedef signed char _int8_t; typedef unsigned char _uint8_t; -typedef int _int16_t; +typedef signed int _int16_t; typedef unsigned int _uint16_t; -typedef long _int32_t; +typedef signed long _int32_t; typedef unsigned long _uint32_t; /* A pointer is 2 bytes */ -typedef int _intptr_t; +typedef signed int _intptr_t; typedef unsigned int _uintptr_t; /* This is the size of the interrupt state save returned by irqsave() */