From d7b742743145a69c1217e40c0be5b804bf411418 Mon Sep 17 00:00:00 2001 From: ceriel Date: Fri, 15 Apr 1988 14:45:04 +0000 Subject: [PATCH] Added varargs.h --- include/_tail_cc/.distr | 1 + include/_tail_cc/varargs.h | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 include/_tail_cc/varargs.h diff --git a/include/_tail_cc/.distr b/include/_tail_cc/.distr index 5654895fc..648710095 100644 --- a/include/_tail_cc/.distr +++ b/include/_tail_cc/.distr @@ -4,4 +4,5 @@ stdio.h assert.h termio.h sgtty.h +varargs.h sys diff --git a/include/_tail_cc/varargs.h b/include/_tail_cc/varargs.h new file mode 100644 index 000000000..6e3ba9bef --- /dev/null +++ b/include/_tail_cc/varargs.h @@ -0,0 +1,12 @@ +/* + * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands. + * See the copyright notice in the ACK home directory, in the file "Copyright". + */ +/* $Header$ */ + +typedef char *va_list; +# define __va_sz(mode) (((sizeof(mode) + sizeof(int) - 1) / sizeof(int)) * sizeof(int)) +# define va_dcl int va_alist; +# define va_start(list) (list = (char *) &va_alist) +# define va_end(list) +# define va_arg(list,mode) (*((mode *)((list += __va_sz(mode)) - __va_sz(mode)))) -- 2.34.1