Pristine Ack-5.5
[Ack-5.5.git] / lang / cem / libcc.ansi / headers / 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.2 1994/06/24 11:41:35 ceriel Exp $ */
6
7 typedef char *va_list;
8 # define __va_sz(mode)  (((sizeof(mode) + sizeof(int) - 1) / sizeof(int)) * sizeof(int))
9 # define va_dcl int va_alist;
10 # define va_start(list) (list = (char *) &va_alist)
11 # define va_end(list)
12 # define va_arg(list,mode) (*((mode *)((list += __va_sz(mode)) - __va_sz(mode))))