varargs.h (102227) | varargs.h (104584) |
---|---|
1/*- 2 * Copyright (c) 2002 David E. O'Brien. All rights reserved. 3 * Copyright (c) 2000 Tsubai Masanari. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 27 * $NetBSD: varargs.h,v 1.5 2000/02/27 17:50:22 tsubai Exp $ | 1/*- 2 * Copyright (c) 2002 David E. O'Brien. All rights reserved. 3 * Copyright (c) 2000 Tsubai Masanari. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 27 * $NetBSD: varargs.h,v 1.5 2000/02/27 17:50:22 tsubai Exp $ |
28 * $FreeBSD: head/sys/powerpc/include/varargs.h 102227 2002-08-21 16:20:02Z mike $ | 28 * $FreeBSD: head/sys/powerpc/include/varargs.h 104584 2002-10-06 22:02:06Z mike $ |
29 */ 30 31#ifndef _POWERPC_VARARGS_H_ 32#define _POWERPC_VARARGS_H_ 33 34#if defined(__GNUC__) && (__GNUC__ == 2 && __GNUC_MINOR__ > 95 || __GNUC__ >= 3) 35 36#include <sys/_types.h> 37 | 29 */ 30 31#ifndef _POWERPC_VARARGS_H_ 32#define _POWERPC_VARARGS_H_ 33 34#if defined(__GNUC__) && (__GNUC__ == 2 && __GNUC_MINOR__ > 95 || __GNUC__ >= 3) 35 36#include <sys/_types.h> 37 |
38#ifndef _VA_LIST_DECLARED 39#define _VA_LIST_DECLARED |
|
38typedef __va_list va_list; | 40typedef __va_list va_list; |
41#endif 42 |
|
39typedef int __builtin_va_alist_t __attribute__((__mode__(__word__))); 40 41#define va_alist __builtin_va_alist 42#define va_dcl __builtin_va_alist_t __builtin_va_alist; ... 43#define va_start(ap) __builtin_varargs_start(ap) 44#define va_arg(ap, type) __builtin_va_arg((ap), type) 45#define va_end(ap) __builtin_va_end(ap) 46 --- 22 unchanged lines hidden --- | 43typedef int __builtin_va_alist_t __attribute__((__mode__(__word__))); 44 45#define va_alist __builtin_va_alist 46#define va_dcl __builtin_va_alist_t __builtin_va_alist; ... 47#define va_start(ap) __builtin_varargs_start(ap) 48#define va_arg(ap, type) __builtin_va_arg((ap), type) 49#define va_end(ap) __builtin_va_end(ap) 50 --- 22 unchanged lines hidden --- |