1eca69d62SDavid E. O'Brien /*- 2eca69d62SDavid E. O'Brien * Copyright (c) 2002 David E. O'Brien. All rights reserved. 3eca69d62SDavid E. O'Brien * 4eca69d62SDavid E. O'Brien * Redistribution and use in source and binary forms, with or without 5eca69d62SDavid E. O'Brien * modification, are permitted provided that the following conditions 6eca69d62SDavid E. O'Brien * are met: 7eca69d62SDavid E. O'Brien * 1. Redistributions of source code must retain the above copyright 8eca69d62SDavid E. O'Brien * notice, this list of conditions and the following disclaimer. 9eca69d62SDavid E. O'Brien * 2. Redistributions in binary form must reproduce the above copyright 10eca69d62SDavid E. O'Brien * notice, this list of conditions and the following disclaimer in the 11eca69d62SDavid E. O'Brien * documentation and/or other materials provided with the distribution. 12eca69d62SDavid E. O'Brien * 3. Neither the name of the University nor the names of its contributors 13eca69d62SDavid E. O'Brien * may be used to endorse or promote products derived from this software 14eca69d62SDavid E. O'Brien * without specific prior written permission. 15eca69d62SDavid E. O'Brien * 16eca69d62SDavid E. O'Brien * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 17eca69d62SDavid E. O'Brien * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18eca69d62SDavid E. O'Brien * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19eca69d62SDavid E. O'Brien * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 20eca69d62SDavid E. O'Brien * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21eca69d62SDavid E. O'Brien * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22eca69d62SDavid E. O'Brien * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23eca69d62SDavid E. O'Brien * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24eca69d62SDavid E. O'Brien * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25eca69d62SDavid E. O'Brien * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26eca69d62SDavid E. O'Brien * SUCH DAMAGE. 27eca69d62SDavid E. O'Brien * 28eca69d62SDavid E. O'Brien * $FreeBSD$ 29eca69d62SDavid E. O'Brien */ 30eca69d62SDavid E. O'Brien 31eca69d62SDavid E. O'Brien #ifndef _MACHINE_STDARG_H_ 32eca69d62SDavid E. O'Brien #define _MACHINE_STDARG_H_ 33eca69d62SDavid E. O'Brien 34eca69d62SDavid E. O'Brien #include <machine/ansi.h> 35eca69d62SDavid E. O'Brien 36eca69d62SDavid E. O'Brien typedef _BSD_VA_LIST_ va_list; 37eca69d62SDavid E. O'Brien 38eca69d62SDavid E. O'Brien #define va_start(ap, last) \ 39eca69d62SDavid E. O'Brien __builtin_stdarg_start((ap), (last)) 40eca69d62SDavid E. O'Brien 41eca69d62SDavid E. O'Brien #define va_arg(ap, type) \ 42eca69d62SDavid E. O'Brien __builtin_va_arg((ap), type) 43eca69d62SDavid E. O'Brien 44eca69d62SDavid E. O'Brien #define va_end(ap) \ 45eca69d62SDavid E. O'Brien __builtin_va_end(ap) 46eca69d62SDavid E. O'Brien 47eca69d62SDavid E. O'Brien #endif /* !_MACHINE_STDARG_H_ */ 48