stdarg.h (107604) | stdarg.h (117404) |
---|---|
1/* Copyright (C) 1989, 1997, 1998, 1999, 2000 Free Software Foundation, Inc. 2 3This file is part of GNU CC. 4 5GNU CC is free software; you can redistribute it and/or modify 6it under the terms of the GNU General Public License as published by 7the Free Software Foundation; either version 2, or (at your option) 8any later version. --- 33 unchanged lines hidden (view full) --- 42#define __GNUC_VA_LIST 43typedef __builtin_va_list __gnuc_va_list; 44#endif 45 46/* Define the standard macros for the user, 47 if this invocation was from the user program. */ 48#ifdef _STDARG_H 49 | 1/* Copyright (C) 1989, 1997, 1998, 1999, 2000 Free Software Foundation, Inc. 2 3This file is part of GNU CC. 4 5GNU CC is free software; you can redistribute it and/or modify 6it under the terms of the GNU General Public License as published by 7the Free Software Foundation; either version 2, or (at your option) 8any later version. --- 33 unchanged lines hidden (view full) --- 42#define __GNUC_VA_LIST 43typedef __builtin_va_list __gnuc_va_list; 44#endif 45 46/* Define the standard macros for the user, 47 if this invocation was from the user program. */ 48#ifdef _STDARG_H 49 |
50/* Note that the type used in va_arg is supposed to match the 51 actual type **after default promotions**. 52 Thus, va_arg (..., short) is not valid. */ 53 54#define va_start(v,l) __builtin_stdarg_start((v),l) 55#define va_end __builtin_va_end 56#define va_arg __builtin_va_arg | 50#define va_start(v,l) __builtin_va_start(v,l) 51#define va_end(v) __builtin_va_end(v) 52#define va_arg(v,l) __builtin_va_arg(v,l) |
57#if !defined(__STRICT_ANSI__) || __STDC_VERSION__ + 0 >= 199900L | 53#if !defined(__STRICT_ANSI__) || __STDC_VERSION__ + 0 >= 199900L |
58#define va_copy(d,s) __builtin_va_copy((d),(s)) | 54#define va_copy(d,s) __builtin_va_copy(d,s) |
59#endif | 55#endif |
60#define __va_copy(d,s) __builtin_va_copy((d),(s)) | 56#define __va_copy(d,s) __builtin_va_copy(d,s) |
61 | 57 |
62 | |
63/* Define va_list, if desired, from __gnuc_va_list. */ 64/* We deliberately do not define va_list when called from 65 stdio.h, because ANSI C says that stdio.h is not supposed to define 66 va_list. stdio.h needs to have access to that data type, 67 but must not use that name. It should use the name __gnuc_va_list, 68 which is safe because it is reserved for the implementation. */ 69 70#ifdef _HIDDEN_VA_LIST /* On OSF1, this means varargs.h is "half-loaded". */ --- 68 unchanged lines hidden --- | 58/* Define va_list, if desired, from __gnuc_va_list. */ 59/* We deliberately do not define va_list when called from 60 stdio.h, because ANSI C says that stdio.h is not supposed to define 61 va_list. stdio.h needs to have access to that data type, 62 but must not use that name. It should use the name __gnuc_va_list, 63 which is safe because it is reserved for the implementation. */ 64 65#ifdef _HIDDEN_VA_LIST /* On OSF1, this means varargs.h is "half-loaded". */ --- 68 unchanged lines hidden --- |