3 * Modified for use in 15-410 at CMU
4 * Zachary Anderson(zra)
8 * Copyright (c) 1994 The University of Utah and the Flux Group.
11 * This file is part of the Flux OSKit. The OSKit is free software, also known
12 * as "open source;" you can redistribute it and/or modify it under the terms
13 * of the GNU General Public License (GPL), version 2, as published by the Free
14 * Software Foundation (FSF). To explore alternate licensing terms, contact
15 * the University of Utah at csl-dist@cs.utah.edu or +1-801-585-3271.
17 * The OSKit is distributed in the hope that it will be useful, but WITHOUT ANY
18 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
19 * FOR A PARTICULAR PURPOSE. See the GPL for more details. You should have
20 * received a copy of the GPL along with the OSKit; see the file COPYING. If
21 * not, write to the FSF, 59 Temple Place #330, Boston, MA 02111-1307, USA.
25 * Mach Operating System
26 * Copyright (c) 1993 Carnegie Mellon University.
27 * All Rights Reserved.
29 * Permission to use, copy, modify and distribute this software and its
30 * documentation is hereby granted, provided that both the copyright
31 * notice and this permission notice appear in all copies of the
32 * software, derivative works or modified versions, and any portions
33 * thereof, and that both notices appear in supporting documentation.
35 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
36 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
37 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
39 * Carnegie Mellon requests users of this software to return to
41 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
42 * School of Computer Science
43 * Carnegie Mellon University
44 * Pittsburgh PA 15213-3890
46 * any improvements or extensions that they make and grant Carnegie Mellon
47 * the rights to redistribute these changes.
54 #define __va_size(type) ((sizeof(type)+3) & ~0x3)
58 typedef char * va_list;
61 #define va_start(pvar, lastarg) \
62 ((pvar) = (char*)(void*)&(lastarg) + __va_size(lastarg))
64 #define va_arg(pvar,type) \
65 ((pvar) += __va_size(type), \
66 *((type *)((pvar) - __va_size(type))))
68 #endif /* _STDARG_H_ */