varargs.h (18335) | varargs.h (18341) |
---|---|
1/* Record that this is varargs.h; this turns off stdarg.h. */ 2 3#ifndef _VARARGS_H 4#define _VARARGS_H 5 6#ifdef __sparc__ 7#include <va-sparc.h> 8#else --- 64 unchanged lines hidden (view full) --- 73#define va_alist __builtin_va_alist 74/* The ... causes current_function_varargs to be set in cc1. */ 75#define va_dcl int __builtin_va_alist; __va_ellipsis 76 77/* Define __gnuc_va_list, just as in gstdarg.h. */ 78 79#ifndef __GNUC_VA_LIST 80#define __GNUC_VA_LIST | 1/* Record that this is varargs.h; this turns off stdarg.h. */ 2 3#ifndef _VARARGS_H 4#define _VARARGS_H 5 6#ifdef __sparc__ 7#include <va-sparc.h> 8#else --- 64 unchanged lines hidden (view full) --- 73#define va_alist __builtin_va_alist 74/* The ... causes current_function_varargs to be set in cc1. */ 75#define va_dcl int __builtin_va_alist; __va_ellipsis 76 77/* Define __gnuc_va_list, just as in gstdarg.h. */ 78 79#ifndef __GNUC_VA_LIST 80#define __GNUC_VA_LIST |
81#if defined (__FreeBSD__) 82/* This is the correct way to handle all BSD NET2 and BSD 4.4 systems. */ 83#include <machine/ansi.h> 84#ifdef _BSD_VA_LIST_ 85typedef _BSD_VA_LIST_ __gnuc_va_list; 86#else 87typedef _VA_LIST_ __gnuc_va_list; 88#endif 89#else |
|
81#if defined(__svr4__) || defined(_AIX) || defined(_M_UNIX) 82typedef char *__gnuc_va_list; 83#else 84typedef void *__gnuc_va_list; 85#endif 86#endif | 90#if defined(__svr4__) || defined(_AIX) || defined(_M_UNIX) 91typedef char *__gnuc_va_list; 92#else 93typedef void *__gnuc_va_list; 94#endif 95#endif |
96#endif |
|
87 88#define va_start(AP) AP=(char *) &__builtin_va_alist 89 90#define va_end(AP) ((void)0) 91 92#if defined(sysV68) 93#define __va_rounded_size(TYPE) \ 94 (((sizeof (TYPE) + sizeof (short) - 1) / sizeof (short)) * sizeof (short)) --- 85 unchanged lines hidden (view full) --- 180#endif 181 182#endif /* not _VA_LIST_, except on certain systems */ 183 184#endif /* not __svr4__ */ 185 186/* The next BSD release (if there is one) wants this symbol to be 187 undefined instead of _VA_LIST_. */ | 97 98#define va_start(AP) AP=(char *) &__builtin_va_alist 99 100#define va_end(AP) ((void)0) 101 102#if defined(sysV68) 103#define __va_rounded_size(TYPE) \ 104 (((sizeof (TYPE) + sizeof (short) - 1) / sizeof (short)) * sizeof (short)) --- 85 unchanged lines hidden (view full) --- 190#endif 191 192#endif /* not _VA_LIST_, except on certain systems */ 193 194#endif /* not __svr4__ */ 195 196/* The next BSD release (if there is one) wants this symbol to be 197 undefined instead of _VA_LIST_. */ |
198#if 0 199/* BSD 4.4 actually spells the name _BSD_VA_LIST_ and requires it to be 200 * defined and usable in place of va_list when the latter name is not 201 * allowed (e.g., in stdio.h - see ginclude/stdarg.h). */ |
|
188#ifdef _BSD_VA_LIST 189#undef _BSD_VA_LIST 190#endif | 202#ifdef _BSD_VA_LIST 203#undef _BSD_VA_LIST 204#endif |
205#endif |
|