ref: c679d867ba0e7d6c4ebbd82649d0eed8a4fe0c2a
parent: 6dd63b0cb73010c5410f295aafa6461eb270f248
author: Roberto E. Vargas Caballero <[email protected]>
date: Thu Feb 16 12:04:13 EST 2017
[libc] Move stdarg.h to the common directory At this point stdarg.h hasn't specific bits, so it can be ported directly.
--- a/libc/include/amd64-sysv/stdarg.h
+++ /dev/null
@@ -1,18 +1,0 @@
-/* See LICENSE file for copyright and license details. */
-#ifndef _STDARG_H_
-#define _STDARG_H_
-
-typedef struct {
- unsigned gp_offset;
- unsigned fp_offset;
- void *overflow_arg_area;
- void *reg_save_area;
-} __va_elem;
-
-typedef __va_elem va_list[1];
-
-#define va_start(ap, last) __builtin_va_start((ap), (last))
-#define va_end(ap) __builtin__va_end(ap)
-#define va_copy(to, from) __builtin_va_copy((to), (from))
-
-#endif
--- a/libc/include/qbe/stdarg.h
+++ /dev/null
@@ -1,10 +1,0 @@
-#ifndef _STDARG_H
-#define _STDARG_H
-
-#define va_list __builtin_va_list
-#define va_start(ap, last) __builtin_va_start((ap), (last))
-#define va_end(ap) __builtin_va_end((ap))
-#define va_copy(to, from) __builtin_va_copy((to), (from))
-#define va_arg(to, type) __builtin_va_arg((to), (type))
-
-#endif
--- /dev/null
+++ b/libc/include/stdarg.h
@@ -1,0 +1,11 @@
+/* See LICENSE file for copyright and license details. */
+#ifndef _STDARG_H
+#define _STDARG_H
+
+#define va_list __builtin_va_list
+#define va_start(ap, last) __builtin_va_start((ap), (last))
+#define va_end(ap) __builtin_va_end((ap))
+#define va_copy(to, from) __builtin_va_copy((to), (from))
+#define va_arg(to, type) __builtin_va_arg((to), (type))
+
+#endif