xref: /csrg-svn/sys/hp300/include/varargs.h (revision 41888)
1*41888Sbostic /*-
2*41888Sbostic  * Copyright (c) 1990 The Regents of the University of California.
3*41888Sbostic  * All rights reserved.
4*41888Sbostic  *
5*41888Sbostic  * %sccs.include.redist.c%
6*41888Sbostic  *
7*41888Sbostic  *	@(#)varargs.h	5.1 (Berkeley) 05/13/90
8*41888Sbostic  */
912198Ssam 
1012198Ssam typedef char *va_list;
11*41888Sbostic 
12*41888Sbostic #define	__va_round(type) \
13*41888Sbostic 	(((sizeof(type) + sizeof(int) - 1) / sizeof(int)) * sizeof(int))
14*41888Sbostic 
15*41888Sbostic #define	va_arg(ap, type) \
16*41888Sbostic 	((type *)(ap += __va_round(type)))[-1]
17*41888Sbostic #define	va_dcl	int va_alist;
18*41888Sbostic #define	va_end(ap)
19*41888Sbostic #define	va_start(ap) \
20*41888Sbostic 	ap = (char *)&va_alist
21