stdarg.h (102227) | stdarg.h (103526) |
---|---|
1/*- 2 * Copyright (c) 2002 David E. O'Brien. All rights reserved. 3 * Copyright (c) 1991, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 18 unchanged lines hidden (view full) --- 27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)stdarg.h 8.1 (Berkeley) 6/10/93 | 1/*- 2 * Copyright (c) 2002 David E. O'Brien. All rights reserved. 3 * Copyright (c) 1991, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 18 unchanged lines hidden (view full) --- 27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)stdarg.h 8.1 (Berkeley) 6/10/93 |
35 * $FreeBSD: head/sys/i386/include/stdarg.h 102227 2002-08-21 16:20:02Z mike $ | 35 * $FreeBSD: head/sys/i386/include/stdarg.h 103526 2002-09-18 07:33:16Z mike $ |
36 */ 37 38#ifndef _STDARG_H_ 39#define _STDARG_H_ 40 41#include <sys/_types.h> 42 43typedef __va_list va_list; 44 45#if defined(__GNUC__) && (__GNUC__ == 2 && __GNUC_MINOR__ > 95 || __GNUC__ >= 3) 46 47#define va_start(ap, last) \ 48 __builtin_stdarg_start((ap), (last)) 49 50#define va_arg(ap, type) \ 51 __builtin_va_arg((ap), type) 52 | 36 */ 37 38#ifndef _STDARG_H_ 39#define _STDARG_H_ 40 41#include <sys/_types.h> 42 43typedef __va_list va_list; 44 45#if defined(__GNUC__) && (__GNUC__ == 2 && __GNUC_MINOR__ > 95 || __GNUC__ >= 3) 46 47#define va_start(ap, last) \ 48 __builtin_stdarg_start((ap), (last)) 49 50#define va_arg(ap, type) \ 51 __builtin_va_arg((ap), type) 52 |
53#define va_copy(dest, src) \ 54 __builtin_va_copy((dest), (src)) 55 |
|
53#define va_end(ap) \ 54 __builtin_va_end(ap) 55 56#else /* ! __GNUC__ post GCC 2.95 */ 57 58#ifdef __GNUC__ 59 60#define __va_size(type) \ --- 17 unchanged lines hidden --- | 56#define va_end(ap) \ 57 __builtin_va_end(ap) 58 59#else /* ! __GNUC__ post GCC 2.95 */ 60 61#ifdef __GNUC__ 62 63#define __va_size(type) \ --- 17 unchanged lines hidden --- |