forget difference between big and small commands - obsolete with vm.
[minix.git] / commands / aal / varargs.h
blob140836d6f86cf00edf27a2eeb255518099132961
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 /* $Header$ */
7 #ifndef _VARARGS_H
8 #define _VARARGS_H
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 */