ref: d6af37e2eea58d72a4f860b5289798206dcd3723
parent: 1cdbbd148a18c528591f343bf5453c872911913e
author: Quentin Rameau <[email protected]>
date: Tue Dec 13 17:33:20 EST 2016
stdint.h: correct typos All typedefs (almost) were inverted
--- a/libc/include/amd64-sysv/stdint.h
+++ b/libc/include/amd64-sysv/stdint.h
@@ -2,35 +2,35 @@
#ifndef _STDINT_H_
#define _STDINT_H_
-typedef int8_t signed char;
-typedef int16_t short;
-typedef int32_t int;
-typedef int64_t long;
+typedef signed char int8_t;
+typedef short int16_t;
+typedef int int32_t;
+typedef long int64_t;
-typedef uint8_t unsigned char;
-typedef uint16_t unsigned short;
-typedef uint32_t unsigned int;
-typedef uint64_t unsigned long;
+typedef unsigned char uint8_t;
+typedef unsigned short uint16_t;
+typedef unsigned int uint32_t;
+typedef unsigned long uint64_t;
-typedef int8_least_t signed char;
-typedef int16_least_t short;
-typedef int32_least_t int;
-typedef int64_least_t long;
+typedef signed char int8_least_t;
+typedef short int16_least_t;
+typedef int int32_least_t;
+typedef long int64_least_t;
-typedef uint8_least_t unsigned char;
-typedef uint16_least_t unsigned short;
-typedef uint32_least_t unsigned int;
-typedef uint64_least_t unsigned long;
+typedef unsigned char uint8_least_t;
+typedef unsigned short uint16_least_t;
+typedef unsigned int uint32_least_t;
+typedef unsigned long uint64_least_t;
-typedef int8_fast_t int;
-typedef int16_fast_t int;
-typedef int32_fast_t int;
-typedef int64_fast_t long;
+typedef int int8_fast_t;
+typedef int int16_fast_t;
+typedef int int32_fast_t;
+typedef long int64_fast_t;
-typedef int8_fast_t unsigned;
-typedef int16_fast_t unsigned;
-typedef int32_fast_t unsigned;
-typedef int64_fast_t unsigned long;
+typedef unsigned int8_fast_t;
+typedef unsigned int16_fast_t;
+typedef unsigned int32_fast_t;
+typedef unsigned long int64_fast_t;
typedef long intptr_t;
typedef unsigned long uintptr_t;
--- a/libc/include/i386-sysv/stdint.h
+++ b/libc/include/i386-sysv/stdint.h
@@ -2,40 +2,40 @@
#ifndef _STDINT_H_
#define _STDINT_H_
-typedef int8_t signed char;
-typedef int16_t short;
-typedef int32_t int;
-typedef int64_t long long;
+typedef signed char int8_t;
+typedef short int16_t;
+typedef int int32_t;
+typedef long long int64_t;
-typedef uint8_t unsigned char;
-typedef uint16_t unsigned short;
-typedef uint32_t unsigned;
-typedef uint64_t unsigned long long;
+typedef unsigned char uint8_t;
+typedef unsigned short uint16_t;
+typedef unsigned uint32_t;
+typedef unsigned long long uint64_t;
-typedef int8_least_t signed char;
-typedef int16_least_t short;
-typedef int32_least_t int;
-typedef int64_least_t long long;
+typedef signed char int8_least_t;
+typedef short int16_least_t;
+typedef int int32_least_t;
+typedef long long int64_least_t;
-typedef uint8_least_t unsigned char;
-typedef uint16_least_t unsigned short;
-typedef uint32_least_t unsigned;
-typedef uint64_least_t unsigned long long;
+typedef unsigned char uint8_least_t;
+typedef unsigned short uint16_least_t;
+typedef unsigned uint32_least_t;
+typedef unsigned long long uint64_least_t;
-typedef int8_fast_t int;
-typedef int16_fast_t int;
-typedef int32_fast_t int;
-typedef int64_fast_t long long;
+typedef int int8_fast_t;
+typedef int int16_fast_t;
+typedef int int32_fast_t;
+typedef long long int64_fast_t;
-typedef int8_fast_t unsigned;
-typedef int16_fast_t unsigned;
-typedef int32_fast_t unsigned;
-typedef int64_fast_t unsigned long long;
+typedef unsigned int8_fast_t;
+typedef unsigned int16_fast_t;
+typedef unsigned int32_fast_t;
+typedef unsigned long long int64_fast_t;
-typedef long intptr_t;
-typedef unsigned long long uintptr_t;
+typedef intptr_t long;
+typedef long long uintptr_t unsigned;
-typedef long intmax_t;
-typedef unsigned long long uintmax_t;
+typedef intmax_t long;
+typedef long long uintmax_t unsigned;
#endif
--- a/libc/include/qbe/stdint.h
+++ b/libc/include/qbe/stdint.h
@@ -2,35 +2,35 @@
#ifndef _STDINT_H_
#define _STDINT_H_
-typedef int8_t signed char;
-typedef int16_t short;
-typedef int32_t int;
-typedef int64_t long;
+typedef signed char int8_t;
+typedef short int16_t;
+typedef int int32_t;
+typedef long int64_t;
-typedef uint8_t unsigned char;
-typedef uint16_t unsigned short;
-typedef uint32_t unsigned int;
-typedef uint64_t unsigned long;
+typedef unsigned char uint8_t;
+typedef unsigned short uint16_t;
+typedef unsigned int uint32_t;
+typedef unsigned long uint64_t;
-typedef int8_least_t signed char;
-typedef int16_least_t short;
-typedef int32_least_t int;
-typedef int64_least_t long;
+typedef signed char int8_least_t;
+typedef short int16_least_t;
+typedef int int32_least_t;
+typedef long int64_least_t;
-typedef uint8_least_t unsigned char;
-typedef uint16_least_t unsigned short;
-typedef uint32_least_t unsigned int;
-typedef uint64_least_t unsigned long;
+typedef unsigned char uint8_least_t;
+typedef unsigned short uint16_least_t;
+typedef unsigned int uint32_least_t;
+typedef unsigned long uint64_least_t;
-typedef int8_fast_t int;
-typedef int16_fast_t int;
-typedef int32_fast_t int;
-typedef int64_fast_t long;
+typedef int int8_fast_t;
+typedef int int16_fast_t;
+typedef int int32_fast_t;
+typedef long int64_fast_t;
-typedef int8_fast_t unsigned;
-typedef int16_fast_t unsigned;
-typedef int32_fast_t unsigned;
-typedef int64_fast_t unsigned long;
+typedef unsigned int8_fast_t;
+typedef unsigned int16_fast_t;
+typedef unsigned int32_fast_t;
+typedef unsigned long int64_fast_t;
typedef long intptr_t;
typedef unsigned long uintptr_t;
--- a/libc/include/z80/stdint.h
+++ b/libc/include/z80/stdint.h
@@ -2,40 +2,40 @@
#ifndef _STDINT_H_
#define _STDINT_H_
-typedef int8_t signed char;
-typedef int16_t int;
-typedef int32_t long;
-typedef int64_t long long;
+typedef signed char int8_t;
+typedef int int16_t;
+typedef long int32_t;
+typedef long long int64_t;
-typedef uint8_t unsigned char;
-typedef uint16_t unsigned;
-typedef uint32_t unsigned long;
-typedef uint64_t unsigned long long;
+typedef unsigned char uint8_t;
+typedef unsigned uint16_t;
+typedef unsigned long uint32_t;
+typedef unsigned long long uint64_t;
-typedef int8_least_t signed char;
-typedef int16_least_t int;
-typedef int32_least_t long;
-typedef int64_least_t long long;
+typedef signed char int8_least_t;
+typedef int int16_least_t;
+typedef long int32_least_t;
+typedef long long int64_least_t;
-typedef uint8_least_t unsigned char;
-typedef uint16_least_t unsigned;
-typedef uint32_least_t unsigned long;
-typedef uint64_least_t unsigned long long;
+typedef unsigned char uint8_least_t;
+typedef unsigned uint16_least_t;
+typedef unsigned long uint32_least_t;
+typedef unsigned long long uint64_least_t;
-typedef int8_fast_t signed char;
-typedef int16_fast_t int;
-typedef int32_fast_t long;
-typedef int64_fast_t long long;
+typedef signed char int8_fast_t;
+typedef int int16_fast_t;
+typedef long int32_fast_t;
+typedef long long int64_fast_t;
-typedef int8_fast_t unsigned char;
-typedef int16_fast_t unsigned;
-typedef int32_fast_t unsigned long;
-typedef int64_fast_t unsigned long long;
+typedef unsigned char int8_fast_t;
+typedef unsigned int16_fast_t;
+typedef unsigned long int32_fast_t;
+typedef unsigned long long int64_fast_t;
-typedef long intptr_t;
-typedef unsigned uintptr_t;
+typedef intptr_t long;
+typedef uintptr_t unsigned;
-typedef long intmax_t;
-typedef unsigned long long uintmax_t;
+typedef intmax_t long;
+typedef long long uintmax_t unsigned;
#endif