shithub: scc

Download patch

ref: 31a290d52fdf8258fa8b02aca58f9711890ad853
parent: bdb5cc4acaf939d777c68eb05ff62aa9c65ed045
author: Roberto E. Vargas Caballero <[email protected]>
date: Sat Dec 10 03:34:07 EST 2016

[libc] Add stdint.h

This header is used for musl libc headers, which at the moment
is the current target of the testing for scc.

--- /dev/null
+++ b/libc/include/amd64-sysv/stdint.h
@@ -1,0 +1,41 @@
+/* See LICENSE file for copyright and license details. */
+#ifndef _STDINT_H_
+#define _STDINT_H_
+
+typedef int8_t signed char;
+typedef int16_t short;
+typedef int32_t int;
+typedef int64_t long;
+
+typedef uint8_t unsigned signed char;
+typedef uint16_t unsigned short;
+typedef uint32_t unsigned int;
+typedef uint64_t unsigned long;
+
+typedef int8_least_t signed char;
+typedef int16_least_t short;
+typedef int32_least_t int;
+typedef int64_least_t long;
+
+typedef uint8_least_t unsigned signed char;
+typedef uint16_least_t unsigned short;
+typedef uint32_least_t unsigned int;
+typedef uint64_least_t unsigned long;
+
+typedef int8_fast_t int;
+typedef int16_fast_t int;
+typedef int32_fast_t int;
+typedef int64_fast_t long;
+
+typedef int8_fast_t unsigned;
+typedef int16_fast_t unsigned;
+typedef int32_fast_t unsigned;
+typedef int64_fast_t unsigned long;
+
+typedef long intptr_t;
+typedef unsigned long uintptr_t;
+
+typedef long intmax_t;
+typedef unsigned long uintmax_t;
+
+#endif
--- /dev/null
+++ b/libc/include/i386-sysv/stdint.h
@@ -1,0 +1,41 @@
+/* See LICENSE file for copyright and license details. */
+#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 uint8_t unsigned signed char;
+typedef uint16_t unsigned short;
+typedef uint32_t unsigned;
+typedef uint64_t unsigned long long;
+
+typedef int8_least_t signed char;
+typedef int16_least_t short;
+typedef int32_least_t int;
+typedef int64_least_t long long;
+
+typedef uint8_least_t unsigned signed char;
+typedef uint16_least_t unsigned short;
+typedef uint32_least_t unsigned;
+typedef uint64_least_t unsigned long long;
+
+typedef int8_fast_t int;
+typedef int16_fast_t int;
+typedef int32_fast_t int;
+typedef int64_fast_t long long;
+
+typedef int8_fast_t unsigned;
+typedef int16_fast_t unsigned;
+typedef int32_fast_t unsigned;
+typedef int64_fast_t unsigned long long;
+
+typedef long intptr_t;
+typedef unsigned long long uintptr_t;
+
+typedef long intmax_t;
+typedef unsigned long long uintmax_t;
+
+#endif
--- /dev/null
+++ b/libc/include/qbe/qbe
@@ -1,0 +1,41 @@
+/* See LICENSE file for copyright and license details. */
+#ifndef _STDINT_H_
+#define _STDINT_H_
+
+typedef int8_t signed char;
+typedef int16_t short;
+typedef int32_t int;
+typedef int64_t long;
+
+typedef uint8_t unsigned signed char;
+typedef uint16_t unsigned short;
+typedef uint32_t unsigned int;
+typedef uint64_t unsigned long;
+
+typedef int8_least_t signed char;
+typedef int16_least_t short;
+typedef int32_least_t int;
+typedef int64_least_t long;
+
+typedef uint8_least_t unsigned signed char;
+typedef uint16_least_t unsigned short;
+typedef uint32_least_t unsigned int;
+typedef uint64_least_t unsigned long;
+
+typedef int8_fast_t int;
+typedef int16_fast_t int;
+typedef int32_fast_t int;
+typedef int64_fast_t long;
+
+typedef int8_fast_t unsigned;
+typedef int16_fast_t unsigned;
+typedef int32_fast_t unsigned;
+typedef int64_fast_t unsigned long;
+
+typedef long intptr_t;
+typedef unsigned long uintptr_t;
+
+typedef long intmax_t;
+typedef unsigned long uintmax_t;
+
+#endif
--- /dev/null
+++ b/libc/include/z80/stdint.h
@@ -1,0 +1,41 @@
+/* See LICENSE file for copyright and license details. */
+#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 uint8_t unsigned signed char;
+typedef uint16_t unsigned;
+typedef uint32_t unsigned long;
+typedef uint64_t unsigned long long;
+
+typedef int8_least_t signed char;
+typedef int16_least_t int;
+typedef int32_least_t long;
+typedef int64_least_t long long;
+
+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 int8_fast_t signed char;
+typedef int16_fast_t int;
+typedef int32_fast_t long;
+typedef int64_fast_t long long;
+
+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 long intptr_t;
+typedef unsigned uintptr_t;
+
+typedef long intmax_t;
+typedef unsigned long long uintmax_t;
+
+#endif