scc

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

commit b5678d336ab34f9377f139d7bdc9a4f76417ebc6
parent 28eee94b1bba0e336f766a30e0c90e0331d0da4b
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sat, 10 Dec 2016 12:11:21 +0100

[libc-amd64] Add stdarg.h

Diffstat:
Alibc/include/amd64-sysv/stdarg.h | 19+++++++++++++++++++
1 file changed, 19 insertions(+), 0 deletions(-)

diff --git a/libc/include/amd64-sysv/stdarg.h b/libc/include/amd64-sysv/stdarg.h @@ -0,0 +1,19 @@ +/* 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(X, Y) __builtin_va_start((X), (Y)) +#define va_end(X) (X) + +int vfprintf(FILE *stream, const char *format, va_list ap); + +#endif