1*41889Sbostic /*- 2*41889Sbostic * Copyright (c) 1990 The Regents of the University of California. 3*41889Sbostic * All rights reserved. 4*41889Sbostic * 5*41889Sbostic * %sccs.include.redist.c% 6*41889Sbostic * 7*41889Sbostic * @(#)stdarg.h 5.1 (Berkeley) 05/13/90 8*41889Sbostic */ 9*41889Sbostic 10*41889Sbostic typedef char *va_list; 11*41889Sbostic 12*41889Sbostic #define __va_round(type) \ 13*41889Sbostic (((sizeof(type) + sizeof(int) - 1) / sizeof(int)) * sizeof(int)) 14*41889Sbostic 15*41889Sbostic #define va_arg(ap, type) \ 16*41889Sbostic ((type *)(ap += __va_round(type)))[-1] 17*41889Sbostic #define va_end(ap) 18*41889Sbostic #define va_start(ap, last) \ 19*41889Sbostic (ap = ((char *)&(last) + __va_round(last))) 20