Pristine Ack-5.5
[Ack-5.5.git] / include / _tail_cc / varargs.h
1 /*
2  * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
3  * See the copyright notice in the ACK home directory, in the file "Copyright".
4  */
5 /* $Id: varargs.h,v 1.3 1994/06/24 11:05:43 ceriel Exp $ */
6
7 #ifndef _VARARGS_H
8 #define _VARARGS_H
9
10 typedef char *va_list;
11 # define __va_sz(mode)  (((sizeof(mode) + sizeof(int) - 1) / sizeof(int)) * sizeof(int))
12 # define va_dcl int va_alist;
13 # define va_start(list) (list = (char *) &va_alist)
14 # define va_end(list)
15 # define va_arg(list,mode) (*((mode *)((list += __va_sz(mode)) - __va_sz(mode))))
16 #endif /* _VARARGS_H */