stdarg.h (18335) | stdarg.h (18341) |
---|---|
1/* stdarg.h for GNU. 2 Note that the type used in va_arg is supposed to match the 3 actual type **after default promotions**. 4 Thus, va_arg (..., short) is not valid. */ 5 6#ifndef _STDARG_H 7#ifndef _ANSI_STDARG_H_ 8#ifndef __need___va_list --- 29 unchanged lines hidden (view full) --- 38#if defined (__H8300__) || defined (__H8300H__) 39#include <va-h8300.h> 40#else 41#if defined (__PPC__) && defined (_CALL_SYSV) 42#include <va-ppc.h> 43#else 44 45/* Define __gnuc_va_list. */ | 1/* stdarg.h for GNU. 2 Note that the type used in va_arg is supposed to match the 3 actual type **after default promotions**. 4 Thus, va_arg (..., short) is not valid. */ 5 6#ifndef _STDARG_H 7#ifndef _ANSI_STDARG_H_ 8#ifndef __need___va_list --- 29 unchanged lines hidden (view full) --- 38#if defined (__H8300__) || defined (__H8300H__) 39#include <va-h8300.h> 40#else 41#if defined (__PPC__) && defined (_CALL_SYSV) 42#include <va-ppc.h> 43#else 44 45/* Define __gnuc_va_list. */ |
46#if defined (__FreeBSD__) 47/* This is the correct way to handle all BSD NET2 and BSD 4.4 systems. */ 48#include <machine/ansi.h> 49#ifdef _BSD_VA_LIST_ 50typedef _BSD_VA_LIST_ __gnuc_va_list; 51#else 52typedef _VA_LIST_ __gnuc_va_list; 53#endif 54#else |
|
46 47#ifndef __GNUC_VA_LIST 48#define __GNUC_VA_LIST 49#if defined(__svr4__) || defined(_AIX) || defined(_M_UNIX) || defined(__NetBSD__) 50typedef char *__gnuc_va_list; 51#else 52typedef void *__gnuc_va_list; 53#endif 54#endif | 55 56#ifndef __GNUC_VA_LIST 57#define __GNUC_VA_LIST 58#if defined(__svr4__) || defined(_AIX) || defined(_M_UNIX) || defined(__NetBSD__) 59typedef char *__gnuc_va_list; 60#else 61typedef void *__gnuc_va_list; 62#endif 63#endif |
64#endif |
|
55 56/* Define the standard macros for the user, 57 if this invocation was from the user program. */ 58#ifdef _STDARG_H 59 60/* Amount of space required in an argument list for an arg of type TYPE. 61 TYPE may alternatively be an expression whose type is used. */ 62 --- 48 unchanged lines hidden (view full) --- 111 va_list. stdio.h needs to have access to that data type, 112 but must not use that name. It should use the name __gnuc_va_list, 113 which is safe because it is reserved for the implementation. */ 114 115#ifdef _HIDDEN_VA_LIST /* On OSF1, this means varargs.h is "half-loaded". */ 116#undef _VA_LIST 117#endif 118 | 65 66/* Define the standard macros for the user, 67 if this invocation was from the user program. */ 68#ifdef _STDARG_H 69 70/* Amount of space required in an argument list for an arg of type TYPE. 71 TYPE may alternatively be an expression whose type is used. */ 72 --- 48 unchanged lines hidden (view full) --- 121 va_list. stdio.h needs to have access to that data type, 122 but must not use that name. It should use the name __gnuc_va_list, 123 which is safe because it is reserved for the implementation. */ 124 125#ifdef _HIDDEN_VA_LIST /* On OSF1, this means varargs.h is "half-loaded". */ 126#undef _VA_LIST 127#endif 128 |
129#if 0 130/* BSD 4.4 actually spells the name _BSD_VA_LIST_ and requires it to be 131 * defined and usable in place of va_list when the latter name is not 132 * allowed (e.g., in stdio.h - see above). */ |
|
119#ifdef _BSD_VA_LIST 120#undef _BSD_VA_LIST 121#endif | 133#ifdef _BSD_VA_LIST 134#undef _BSD_VA_LIST 135#endif |
136#endif |
|
122 123#ifdef __svr4__ 124/* SVR4.2 uses _VA_LIST for an internal alias for va_list, 125 so we must avoid testing it and setting it here. 126 SVR4 uses _VA_LIST as a flag in stdarg.h, but we should 127 have no conflict with that. */ 128#ifndef _VA_LIST_ 129#define _VA_LIST_ --- 45 unchanged lines hidden --- | 137 138#ifdef __svr4__ 139/* SVR4.2 uses _VA_LIST for an internal alias for va_list, 140 so we must avoid testing it and setting it here. 141 SVR4 uses _VA_LIST as a flag in stdarg.h, but we should 142 have no conflict with that. */ 143#ifndef _VA_LIST_ 144#define _VA_LIST_ --- 45 unchanged lines hidden --- |