stdarg.h revision 102227
11573Srgrimes/*-
21573Srgrimes * Copyright (c) 2002 David E. O'Brien.  All rights reserved.
31573Srgrimes * Copyright (c) 1991, 1993
41573Srgrimes *	The Regents of the University of California.  All rights reserved.
51573Srgrimes *
61573Srgrimes * Redistribution and use in source and binary forms, with or without
71573Srgrimes * modification, are permitted provided that the following conditions
81573Srgrimes * are met:
91573Srgrimes * 1. Redistributions of source code must retain the above copyright
101573Srgrimes *    notice, this list of conditions and the following disclaimer.
111573Srgrimes * 2. Redistributions in binary form must reproduce the above copyright
121573Srgrimes *    notice, this list of conditions and the following disclaimer in the
131573Srgrimes *    documentation and/or other materials provided with the distribution.
141573Srgrimes * 3. All advertising materials mentioning features or use of this software
151573Srgrimes *    must display the following acknowledgement:
161573Srgrimes *	This product includes software developed by the University of
171573Srgrimes *	California, Berkeley and its contributors.
181573Srgrimes * 4. Neither the name of the University nor the names of its contributors
191573Srgrimes *    may be used to endorse or promote products derived from this software
201573Srgrimes *    without specific prior written permission.
211573Srgrimes *
221573Srgrimes * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
231573Srgrimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
241573Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
251573Srgrimes * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
261573Srgrimes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
271573Srgrimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
281573Srgrimes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
291573Srgrimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
301573Srgrimes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
311573Srgrimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
321573Srgrimes * SUCH DAMAGE.
331573Srgrimes *
341573Srgrimes *	@(#)stdarg.h	8.1 (Berkeley) 6/10/93
351573Srgrimes * $FreeBSD: head/sys/ia64/include/stdarg.h 102227 2002-08-21 16:20:02Z mike $
361573Srgrimes */
371573Srgrimes
381573Srgrimes#ifndef _MACHINE_STDARG_H_
391573Srgrimes#define	_MACHINE_STDARG_H_
4092986Sobrien
4192986Sobrien#include <sys/_types.h>
421573Srgrimes
4371579Sdeischentypedef	__va_list	va_list;
441573Srgrimes
451573Srgrimes#if defined(__GNUC__) && (__GNUC__ == 2 && __GNUC_MINOR__ > 95 || __GNUC__ >= 3)
461573Srgrimes
471573Srgrimes#define	va_start(ap, last) \
481573Srgrimes	__builtin_stdarg_start((ap), (last))
4979379Smikeh
5034380Sjb#define	va_arg(ap, type) \
511573Srgrimes	__builtin_va_arg((ap), type)
5271579Sdeischen
531573Srgrimes#define	va_end(ap) \
541573Srgrimes	__builtin_va_end(ap)
551573Srgrimes
561573Srgrimes#endif
571573Srgrimes
581573Srgrimes#endif /* !_MACHINE_STDARG_H_ */
591573Srgrimes