stdarg.h revision 96318
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 96318 2002-05-10 02:12:04Z obrien $ 3666458Sdfr */ 3766458Sdfr 3866458Sdfr#ifndef _MACHINE_STDARG_H_ 3966458Sdfr#define _MACHINE_STDARG_H_ 4066458Sdfr 4166458Sdfr#include <machine/ansi.h> 4266458Sdfr 4366458Sdfrtypedef _BSD_VA_LIST_ va_list; 4466458Sdfr 4596318Sobrien#if defined(__GNUC__) && (__GNUC__ == 2 && __GNUC_MINOR__ > 95 || __GNUC__ >= 3) 4666458Sdfr 4796318Sobrien#define va_start(ap, last) \ 4896318Sobrien __builtin_stdarg_start((ap), (last)) 4996318Sobrien 5096318Sobrien#define va_arg(ap, type) \ 5196318Sobrien __builtin_va_arg((ap), type) 5296318Sobrien 5396318Sobrien#define va_end(ap) \ 5496318Sobrien __builtin_va_end(ap) 5596318Sobrien 5666458Sdfr#endif /* !_MACHINE_STDARG_H_ */ 57