From 8b16b33c67aaa843ec60f46b88cbb1f622a0336c Mon Sep 17 00:00:00 2001 From: unknown <> Date: Mon, 17 Nov 2014 20:15:26 +0000 Subject: [PATCH] autocommit for files dated 2014-11-17 20:15:26 --- include/alignof.h | 7 +++++++ include/stdarg.h | 20 ++++++++++++++++++++ include/stdbool.h | 9 +++++++++ include/stddef.h | 13 +++++++++++++ 4 files changed, 49 insertions(+) create mode 100644 include/alignof.h create mode 100644 include/stdarg.h create mode 100644 include/stdbool.h create mode 100644 include/stddef.h diff --git a/include/alignof.h b/include/alignof.h new file mode 100644 index 0000000..bcc1c68 --- /dev/null +++ b/include/alignof.h @@ -0,0 +1,7 @@ +#ifndef __ALIGNOF_HDR +#define __ALIGNOF_HDR + +#define alignof _Alignof +#define __alignof_is_defined 1 + +#endif diff --git a/include/stdarg.h b/include/stdarg.h new file mode 100644 index 0000000..794c41e --- /dev/null +++ b/include/stdarg.h @@ -0,0 +1,20 @@ +#ifndef __STDARG_HDR +#define __STDARG_HDR + +typedef struct { + unsigned int gp_offset; + unsigned int fp_offset; + void *overflow_arg_area; + void *reg_save_area; +} va_list[1]; + +#define va_start(AP, LAST) __builtin_va_start(AP) +#define va_arg(AP, TYPE) __builtin_va_arg(AP, TYPE) +#define va_end(AP) 1 +#define va_copy(DEST, SRC) ((DEST)[0] = (SRC)[0]) + + +#define __GNUC_VA_LIST 1 +typedef va_list __gnuc_va_list; // deal with gnuc headers + +#endif diff --git a/include/stdbool.h b/include/stdbool.h new file mode 100644 index 0000000..86c7963 --- /dev/null +++ b/include/stdbool.h @@ -0,0 +1,9 @@ +#ifndef __STDBOOL_HDR +#define __STDBOOL_HDR + +#define bool _Bool +#define true 1 +#define false 0 +#define __bool_true_false_are_defined 1 + +#endif diff --git a/include/stddef.h b/include/stddef.h new file mode 100644 index 0000000..5044d19 --- /dev/null +++ b/include/stddef.h @@ -0,0 +1,13 @@ +#ifndef __STDDEF_HDR +#define __STDDEF_HDR + +#define NULL ((void*)0) + +typedef unsigned long size_t; +typedef long ptrdiff_t; +typedef char wchar_t; +typedef long double max_align_t; + +#define offsetof(TYPE, MEMBER) ((size_t)&(((TYPE*)NULL)->MEMBER)) + +#endif -- 2.40.0