stdarg.h


    1 /* Copyright (C) 1989, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
    2 
    3 This file is part of GNU CC.
    4 
    5 GNU CC is free software; you can redistribute it and/or modify
    6 it under the terms of the GNU General Public License as published by
    7 the Free Software Foundation; either version 2, or (at your option)
    8 any later version.
    9 
    10 GNU CC is distributed in the hope that it will be useful,
    11 but WITHOUT ANY WARRANTY; without even the implied warranty of
    12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    13 GNU General Public License for more details.
    14  <list.h>
    15 You should have received a copy of the GNU General Public License <xmlversion.h> <xmlautomata.h>
    16 along with GNU CC; see the file COPYING.  If not, write to
    17 the Free Software Foundation, 59 Temple Place - Suite 330,
    18 Boston, MA 02111-1307, USA.  */
    19  <__XML_HASH_H__>
    20 /* As a special exception, if you include this header file into source
    21    files compiled by GCC, this header file does not by itself cause
    22    the resulting executable to be covered by the GNU General Public
    23    License.  This exception does not however invalidate any other
    24    reasons why the executable file might be covered by the GNU General
    25    Public License.  */
    26 
    27 /* <iconv.h>
    28  * ISO C Standard:  7.15  Variable arguments  
    29  */
    30 
    31 #ifndef _STDARG_H
    32 #ifndef _ANSI_STDARG_H_
    33 #ifndef __need___va_list <machtypes.h>
    34 #define _STDARG_H
    35 #define _ANSI_STDARG_H_ <feature_tests.h>
    36 #endif /* not __need___va_list */ <va_list.h>
    37 #undef __need___va_list <__need___va_list> <stdio_tag.h>
    38  <stdio_impl.h>
    39 /* Define __gnuc_va_list.  */
    40 
    41 #ifndef __GNUC_VA_LIST
    42 #define __GNUC_VA_LIST
    43 typedef __builtin_va_list __gnuc_va_list;  <typedef:__gnuc_va_list>
    44 #endif
    45  <int_types.h>
    46 /* Define the standard macros for the user,
    47    if this invocation was from the user program.  */
    48 #ifdef _STDARG_H
    49  <_CS_LFS64_LINTFLAGS>
    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) <_CS_XBS5_ILP32_OFF32_CFLAGS>
    53 #if !defined(__STRICT_ANSI__) || __STDC_VERSION__ + 0 >= 199900L <BASE_BUFFER_SIZE> <_CS_XBS5_ILP32_OFF32_LDFLAGS>
    54 #define va_copy(d,s)	__builtin_va_copy(d,s) <_CS_XBS5_ILP32_OFF32_LIBS>
    55 #endif <_CS_XBS5_ILP32_OFF32_LINTFLAGS>
    56 #define __va_copy(d,s)	__builtin_va_copy(d,s) <_CS_XBS5_ILP32_OFFBIG_CFLAGS>
    57  <_CS_XBS5_ILP32_OFFBIG_LDFLAGS>
    58 /* Define va_list, if desired, from __gnuc_va_list. */ <_CS_XBS5_ILP32_OFFBIG_LIBS>
    59 /* We deliberately do not define va_list when called from <_CS_XBS5_ILP32_OFFBIG_LINTFLAGS>
    60    stdio.h, because ANSI C says that stdio.h is not supposed to define <_CS_XBS5_LP64_OFF64_CFLAGS>
    61    va_list.  stdio.h needs to have access to that data type,  <XML_XML_NAMESPACE> <_CS_XBS5_LP64_OFF64_LDFLAGS>
    62    but must not use that name.  It should use the name __gnuc_va_list, <_CS_XBS5_LP64_OFF64_LIBS>
    63    which is safe because it is reserved for the implementation.  */ <_CS_XBS5_LP64_OFF64_LINTFLAGS>
    64  <_CS_XBS5_LPBIG_OFFBIG_CFLAGS>
    65 #ifdef _HIDDEN_VA_LIST  /* On OSF1, this means varargs.h is "half-loaded".  */ <_CS_XBS5_LPBIG_OFFBIG_LDFLAGS>
    66 #undef _VA_LIST <_CS_XBS5_LPBIG_OFFBIG_LIBS>
    67 #endif <_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS>
    68 
    69 #ifdef _BSD_VA_LIST
    70 #undef _BSD_VA_LIST
    71 #endif
    72 
    73 #if defined(__svr4__) || (defined(_SCO_DS) && !defined(__VA_LIST)) <_SC_ARG_MAX>
    74 /* SVR4.2 uses _VA_LIST for an internal alias for va_list, <_SC_CHILD_MAX>
    75    so we must avoid testing it and setting it here. <_SC_CLK_TCK>
    76    SVR4 uses _VA_LIST as a flag in stdarg.h, but we should <_SC_NGROUPS_MAX>
    77    have no conflict with that.  */ <_SC_OPEN_MAX>
    78 #ifndef _VA_LIST_ <_SC_JOB_CONTROL>
    79 #define _VA_LIST_ <_SC_SAVED_IDS>
    80 #ifdef __i860__ <_SC_VERSION>
    81 #ifndef _VA_LIST
    82 #define _VA_LIST va_list <_SC_PASS_MAX>
    83 #endif <_SC_LOGNAME_MAX>
    84 #endif /* __i860__ */ <_SC_PAGESIZE>
    85 typedef __gnuc_va_list va_list; <_SC_XOPEN_VERSION>
    86 #ifdef _SCO_DS
    87 #define __VA_LIST <_SC_NPROCESSORS_CONF>
    88 #endif <_SC_NPROCESSORS_ONLN>
    89 #endif /* _VA_LIST_ */ <_SC_STREAM_MAX>
    90 #else /* not __svr4__ || _SCO_DS */ <_SC_TZNAME_MAX>
    91 
    92 /* The macro _VA_LIST_ is the same thing used by this file in Ultrix. <_SC_AIO_LISTIO_MAX>
    93    But on BSD NET2 we must not test or define or undef it. <_SC_AIO_MAX>
    94    (Note that the comments in NET 2's ansi.h <_SC_AIO_PRIO_DELTA_MAX>
    95    are incorrect for _VA_LIST_--see stdio.h!)  */ <_SC_ASYNCHRONOUS_IO>
    96 #if !defined (_VA_LIST_) || defined (__BSD_NET2__) || defined (____386BSD____) || defined (__bsdi__) || defined (__sequent__) || defined (__FreeBSD__) || defined(WINNT) <_SC_DELAYTIMER_MAX>
    97 /* The macro _VA_LIST_DEFINED is used in Windows NT 3.5  */ <_SC_FSYNC>
    98 #ifndef _VA_LIST_DEFINED <_SC_MAPPED_FILES>
    99 /* The macro _VA_LIST is used in SCO Unix 3.2.  */ <_SC_MEMLOCK>
    100 #ifndef _VA_LIST <_SC_MEMLOCK_RANGE>
    101 /* The macro _VA_LIST_T_H is used in the Bull dpx2  */ <_SC_MEMORY_PROTECTION>
    102 #ifndef _VA_LIST_T_H <_SC_MESSAGE_PASSING>
    103 /* The macro __va_list__ is used by BeOS.  */ <_SC_MQ_OPEN_MAX>
    104 #ifndef __va_list__ <_SC_MQ_PRIO_MAX>
    105 typedef __gnuc_va_list va_list; <_SC_PRIORITIZED_IO>
    106 #endif /* not __va_list__ */ <_SC_PRIORITY_SCHEDULING>
    107 #endif /* not _VA_LIST_T_H */ <_SC_REALTIME_SIGNALS>
    108 #endif /* not _VA_LIST */ <_SC_RTSIG_MAX>
    109 #endif /* not _VA_LIST_DEFINED */ <_SC_SEMAPHORES>
    110 #if !(defined (__BSD_NET2__) || defined (____386BSD____) || defined (__bsdi__) || defined (__sequent__) || defined (__FreeBSD__)) <_SC_SEM_NSEMS_MAX>
    111 #define _VA_LIST_ <_SC_SEM_VALUE_MAX>
    112 #endif <_SC_SHARED_MEMORY_OBJECTS>
    113 #ifndef _VA_LIST <_SC_SIGQUEUE_MAX>
    114 #define _VA_LIST <BAD_CAST> <_SC_SIGRT_MIN>
    115 #endif <_SC_SIGRT_MAX> <globals.h>
    116 #ifndef _VA_LIST_DEFINED <_SC_SYNCHRONIZED_IO>
    117 #define _VA_LIST_DEFINED <_SC_TIMERS>
    118 #endif <_SC_TIMER_MAX>
    119 #ifndef _VA_LIST_T_H
    120 #define _VA_LIST_T_H <_SC_2_C_BIND>
    121 #endif <_SC_2_C_DEV>
    122 #ifndef __va_list__ <_SC_2_C_VERSION>
    123 #define __va_list__ <_SC_2_FORT_DEV>
    124 #endif <_SC_2_FORT_RUN>
    125  <_SC_2_LOCALEDEF>
    126 #endif /* not _VA_LIST_, except on certain systems */ <_SC_2_SW_DEV>
    127  <_SC_2_UPE>
    128 #endif /* not __svr4__ */ <_SC_2_VERSION>
    129  <_SC_BC_BASE_MAX>
    130 #endif /* _STDARG_H */ <_SC_BC_DIM_MAX>
    131  <_SC_BC_SCALE_MAX>
    132 #endif /* not _ANSI_STDARG_H_ */ <_SC_BC_STRING_MAX>
    133 #endif /* not _STDARG_H */ <_SC_COLL_WEIGHTS_MAX>