scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 3099a3db64d71de6b912ab23d0c59376dac7be44
parent 198ec83d42347068375399482925d91ee94abe32
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu, 16 Feb 2017 17:04:13 +0100

[libc] Move stdarg.h to the common directory

At this point stdarg.h hasn't specific bits, so
it can be ported directly.

Diffstat:
Dlibc/include/amd64-sysv/stdarg.h | 18------------------
Dlibc/include/qbe/stdarg.h | 10----------
Alibc/include/stdarg.h | 11+++++++++++
3 files changed, 11 insertions(+), 28 deletions(-)

diff --git a/libc/include/amd64-sysv/stdarg.h b/libc/include/amd64-sysv/stdarg.h @@ -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 @@ -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 @@ -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