stdarg.h revision 99122
1168054Sflz/*-
2168054Sflz * Copyright (c) 2002 David E. O'Brien.  All rights reserved.
3168266Sgabor *
4168266Sgabor * Redistribution and use in source and binary forms, with or without
5168266Sgabor * modification, are permitted provided that the following conditions
6168266Sgabor * are met:
7168266Sgabor * 1. Redistributions of source code must retain the above copyright
8168266Sgabor *    notice, this list of conditions and the following disclaimer.
9168266Sgabor * 2. Redistributions in binary form must reproduce the above copyright
10168266Sgabor *    notice, this list of conditions and the following disclaimer in the
11168054Sflz *    documentation and/or other materials provided with the distribution.
12168054Sflz * 3. Neither the name of the University nor the names of its contributors
13168064Sflz *    may be used to endorse or promote products derived from this software
14168064Sflz *    without specific prior written permission.
15168064Sflz *
16168064Sflz * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17168064Sflz * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18168064Sflz * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19168064Sflz * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20168064Sflz * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21168064Sflz * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22168064Sflz * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23168064Sflz * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24168064Sflz * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25168064Sflz * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26168064Sflz * SUCH DAMAGE.
27168054Sflz *
28168054Sflz * $FreeBSD: head/sys/amd64/include/stdarg.h 99122 2002-06-30 07:22:30Z obrien $
29168064Sflz */
30168054Sflz
31168064Sflz#ifndef _MACHINE_STDARG_H_
32171129Sobrien#define	_MACHINE_STDARG_H_
33168939Stmclaugh
34168131Sbmah#include <machine/ansi.h>
35168113Smarcus
36168123Snetchildtypedef _BSD_VA_LIST_	va_list;
37168939Stmclaugh
38168064Sflz#define	va_start(ap, last) \
39168054Sflz	__builtin_stdarg_start((ap), (last))
40168054Sflz
41168054Sflz#define	va_arg(ap, type) \
42168054Sflz	__builtin_va_arg((ap), type)
43168261Sache
44168077Sflz#define	va_end(ap) \
45168077Sflz	__builtin_va_end(ap)
46168126Sale
47168069Sgarga#endif /* !_MACHINE_STDARG_H_ */
48168472Snovel