stdarg.h revision 143063
166458Sdfr/*- 296318Sobrien * Copyright (c) 2002 David E. O'Brien. All rights reserved. 366458Sdfr * Copyright (c) 1991, 1993 466458Sdfr * The Regents of the University of California. All rights reserved. 566458Sdfr * 666458Sdfr * Redistribution and use in source and binary forms, with or without 766458Sdfr * modification, are permitted provided that the following conditions 866458Sdfr * are met: 966458Sdfr * 1. Redistributions of source code must retain the above copyright 1066458Sdfr * notice, this list of conditions and the following disclaimer. 1166458Sdfr * 2. Redistributions in binary form must reproduce the above copyright 1266458Sdfr * notice, this list of conditions and the following disclaimer in the 1366458Sdfr * documentation and/or other materials provided with the distribution. 1466458Sdfr * 3. All advertising materials mentioning features or use of this software 1566458Sdfr * must display the following acknowledgement: 1666458Sdfr * This product includes software developed by the University of 1766458Sdfr * California, Berkeley and its contributors. 1866458Sdfr * 4. Neither the name of the University nor the names of its contributors 1966458Sdfr * may be used to endorse or promote products derived from this software 2066458Sdfr * without specific prior written permission. 2166458Sdfr * 2266458Sdfr * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2366458Sdfr * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2466458Sdfr * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2566458Sdfr * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2666458Sdfr * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2766458Sdfr * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2866458Sdfr * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2966458Sdfr * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 3066458Sdfr * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3166458Sdfr * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3266458Sdfr * SUCH DAMAGE. 3366458Sdfr * 3466458Sdfr * @(#)stdarg.h 8.1 (Berkeley) 6/10/93 3596318Sobrien * $FreeBSD: head/sys/ia64/include/stdarg.h 143063 2005-03-02 21:33:29Z joerg $ 3666458Sdfr */ 3766458Sdfr 3866458Sdfr#ifndef _MACHINE_STDARG_H_ 3966458Sdfr#define _MACHINE_STDARG_H_ 4066458Sdfr 41104583Smike#include <sys/cdefs.h> 42102227Smike#include <sys/_types.h> 4366458Sdfr 44104583Smike#ifndef _VA_LIST_DECLARED 45104583Smike#define _VA_LIST_DECLARED 46102227Smiketypedef __va_list va_list; 47104583Smike#endif 4866458Sdfr 49143063Sjoerg#if defined(__GNUCLIKE_BUILTIN_STDARG) 5066458Sdfr 5196318Sobrien#define va_start(ap, last) \ 5296318Sobrien __builtin_stdarg_start((ap), (last)) 5396318Sobrien 5496318Sobrien#define va_arg(ap, type) \ 5596318Sobrien __builtin_va_arg((ap), type) 5696318Sobrien 57104583Smike#if __ISO_C_VISIBLE >= 1999 58103526Smike#define va_copy(dest, src) \ 59103526Smike __builtin_va_copy((dest), (src)) 60104583Smike#endif 61103526Smike 6296318Sobrien#define va_end(ap) \ 6396318Sobrien __builtin_va_end(ap) 6496318Sobrien 6596336Smarcel#endif 6696336Smarcel 6766458Sdfr#endif /* !_MACHINE_STDARG_H_ */ 68