ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

stdarg.h
Go to the documentation of this file.
00001 /* Copyright (C) 1989, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
00002 
00003 This file is part of GCC.
00004 
00005 GCC is free software; you can redistribute it and/or modify
00006 it under the terms of the GNU General Public License as published by
00007 the Free Software Foundation; either version 2, or (at your option)
00008 any later version.
00009 
00010 GCC is distributed in the hope that it will be useful,
00011 but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 GNU General Public License for more details.
00014 
00015 You should have received a copy of the GNU General Public License
00016 along with GCC; see the file COPYING.  If not, write to
00017 the Free Software Foundation, 51 Franklin Street, Fifth Floor,
00018 Boston, MA 02110-1301, USA.  */
00019 
00020 /* As a special exception, if you include this header file into source
00021    files compiled by GCC, this header file does not by itself cause
00022    the resulting executable to be covered by the GNU General Public
00023    License.  This exception does not however invalidate any other
00024    reasons why the executable file might be covered by the GNU General
00025    Public License.  */
00026 
00027 /*
00028  * ISO C Standard:  7.15  Variable arguments  <stdarg.h>
00029  */
00030 
00031 #ifndef _INC_STDARG
00032 #define _INC_STDARG
00033 #ifndef _WIN32
00034 #error Only Win32 target is supported!
00035 #endif
00036 
00037 #ifndef _STDARG_H
00038 #ifndef _ANSI_STDARG_H_
00039 #ifndef __need___va_list
00040 #define _STDARG_H
00041 #define _ANSI_STDARG_H_
00042 #endif /* not __need___va_list */
00043 #undef __need___va_list
00044 
00045 /* Define __gnuc_va_list.  */
00046 
00047 #ifdef __GNUC__
00048 #ifndef __GNUC_VA_LIST
00049 #define __GNUC_VA_LIST
00050 typedef __builtin_va_list __gnuc_va_list;
00051 #endif
00052 #endif
00053 
00054 /* Define the standard macros for the user,
00055    if this invocation was from the user program.  */
00056 #ifdef _STDARG_H
00057 
00058 #ifdef __GNUC__
00059 #define va_start(v,l)   __builtin_va_start(v,l)
00060 #define va_end(v)   __builtin_va_end(v)
00061 #define va_arg(v,l) __builtin_va_arg(v,l)
00062 #if !defined(__STRICT_ANSI__) || __STDC_VERSION__ + 0 >= 199900L
00063 #define va_copy(d,s)    __builtin_va_copy(d,s)
00064 #endif
00065 #define __va_copy(d,s)  __builtin_va_copy(d,s)
00066 #endif
00067 
00068 /* Define va_list, if desired, from __gnuc_va_list. */
00069 /* We deliberately do not define va_list when called from
00070    stdio.h, because ANSI C says that stdio.h is not supposed to define
00071    va_list.  stdio.h needs to have access to that data type,
00072    but must not use that name.  It should use the name __gnuc_va_list,
00073    which is safe because it is reserved for the implementation.  */
00074 
00075 #ifdef _HIDDEN_VA_LIST  /* On OSF1, this means varargs.h is "half-loaded".  */
00076 #undef _VA_LIST
00077 #endif
00078 
00079 #ifdef _BSD_VA_LIST
00080 #undef _BSD_VA_LIST
00081 #endif
00082 
00083 #ifdef __GNUC__
00084 #if defined(__svr4__) || (defined(_SCO_DS) && !defined(__VA_LIST))
00085 /* SVR4.2 uses _VA_LIST for an internal alias for va_list,
00086    so we must avoid testing it and setting it here.
00087    SVR4 uses _VA_LIST as a flag in stdarg.h, but we should
00088    have no conflict with that.  */
00089 #ifndef _VA_LIST_
00090 #define _VA_LIST_
00091 #ifdef __i860__
00092 #ifndef _VA_LIST
00093 #define _VA_LIST va_list
00094 #endif
00095 #endif /* __i860__ */
00096 typedef __gnuc_va_list va_list;
00097 #ifdef _SCO_DS
00098 #define __VA_LIST
00099 #endif
00100 #endif /* _VA_LIST_ */
00101 #else /* not __svr4__ || _SCO_DS */
00102 
00103 /* The macro _VA_LIST_ is the same thing used by this file in Ultrix.
00104    But on BSD NET2 we must not test or define or undef it.
00105    (Note that the comments in NET 2's ansi.h
00106    are incorrect for _VA_LIST_--see stdio.h!)  */
00107 #if !defined (_VA_LIST_) || defined (__BSD_NET2__) || defined (____386BSD____) || defined (__bsdi__) || defined (__sequent__) || defined (__FreeBSD__) || defined(WINNT)
00108 /* The macro _VA_LIST_DEFINED is used in Windows NT 3.5  */
00109 #ifndef _VA_LIST_DEFINED
00110 /* The macro _VA_LIST is used in SCO Unix 3.2.  */
00111 #ifndef _VA_LIST
00112 /* The macro _VA_LIST_T_H is used in the Bull dpx2  */
00113 #ifndef _VA_LIST_T_H
00114 /* The macro __va_list__ is used by BeOS.  */
00115 #ifndef __va_list__
00116 typedef __gnuc_va_list va_list;
00117 #endif /* not __va_list__ */
00118 #endif /* not _VA_LIST_T_H */
00119 #endif /* not _VA_LIST */
00120 #endif /* not _VA_LIST_DEFINED */
00121 #if !(defined (__BSD_NET2__) || defined (____386BSD____) || defined (__bsdi__) || defined (__sequent__) || defined (__FreeBSD__))
00122 #define _VA_LIST_
00123 #endif
00124 #ifndef _VA_LIST
00125 #define _VA_LIST
00126 #endif
00127 #ifndef _VA_LIST_DEFINED
00128 #define _VA_LIST_DEFINED
00129 #endif
00130 #ifndef _VA_LIST_T_H
00131 #define _VA_LIST_T_H
00132 #endif
00133 #ifndef __va_list__
00134 #define __va_list__
00135 #endif
00136 
00137 #endif /* not _VA_LIST_, except on certain systems */
00138 
00139 #endif /* not __svr4__ */
00140 
00141 #endif /* __GNUC__ */
00142 #endif /* _STDARG_H */
00143 
00144 #endif /* not _ANSI_STDARG_H_ */
00145 #endif /* not _STDARG_H */
00146 
00147 #include <vadefs.h>
00148 
00149 #ifndef va_start
00150 #define va_start _crt_va_start
00151 #endif
00152 #ifndef va_arg
00153 #define va_arg _crt_va_arg
00154 #endif
00155 #ifndef va_end
00156 #define va_end _crt_va_end
00157 #endif
00158 
00159 #endif

Generated on Mon May 28 2012 04:28:38 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.