[hackers] [scc] [libc] Move stdarg.h to the common directory || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Thu, 16 Feb 2017 17:24:34 +0100 (CET)

commit 3099a3db64d71de6b912ab23d0c59376dac7be44
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Thu Feb 16 17:04:13 2017 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Thu Feb 16 17:16:40 2017 +0100

    [libc] Move stdarg.h to the common directory
    
    At this point stdarg.h hasn't specific bits, so
    it can be ported directly.

diff --git a/libc/include/amd64-sysv/stdarg.h b/libc/include/amd64-sysv/stdarg.h
deleted file mode 100644
index 728aa14..0000000
--- a/libc/include/amd64-sysv/stdarg.h
+++ /dev/null
_AT_@ -1,18 +0,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
diff --git a/libc/include/qbe/stdarg.h b/libc/include/qbe/stdarg.h
deleted file mode 100644
index 27d05c3..0000000
--- a/libc/include/qbe/stdarg.h
+++ /dev/null
_AT_@ -1,10 +0,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
diff --git a/libc/include/stdarg.h b/libc/include/stdarg.h
new file mode 100644
index 0000000..ea02d66
--- /dev/null
+++ b/libc/include/stdarg.h
_AT_@ -0,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
Received on Thu Feb 16 2017 - 17:24:34 CET

This archive was generated by hypermail 2.3.0 : Thu Feb 16 2017 - 17:36:32 CET