cstdio
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041 #pragma GCC system_header
00042
00043 #include <bits/c++config.h>
00044 #include <cstddef>
00045 #include <stdio.h>
00046
00047 #ifndef _GLIBCXX_CSTDIO
00048 #define _GLIBCXX_CSTDIO 1
00049
00050
00051 #undef clearerr
00052 #undef fclose
00053 #undef feof
00054 #undef ferror
00055 #undef fflush
00056 #undef fgetc
00057 #undef fgetpos
00058 #undef fgets
00059 #undef fopen
00060 #undef fprintf
00061 #undef fputc
00062 #undef fputs
00063 #undef fread
00064 #undef freopen
00065 #undef fscanf
00066 #undef fseek
00067 #undef fsetpos
00068 #undef ftell
00069 #undef fwrite
00070 #undef getc
00071 #undef getchar
00072 #undef gets
00073 #undef perror
00074 #undef printf
00075 #undef putc
00076 #undef putchar
00077 #undef puts
00078 #undef remove
00079 #undef rename
00080 #undef rewind
00081 #undef scanf
00082 #undef setbuf
00083 #undef setvbuf
00084 #undef sprintf
00085 #undef sscanf
00086 #undef tmpfile
00087 #undef tmpnam
00088 #undef ungetc
00089 #undef vfprintf
00090 #undef vprintf
00091 #undef vsprintf
00092
00093 _GLIBCXX_BEGIN_NAMESPACE(std)
00094
00095 using ::FILE;
00096 using ::fpos_t;
00097
00098 using ::clearerr;
00099 using ::fclose;
00100 using ::feof;
00101 using ::ferror;
00102 using ::fflush;
00103 using ::fgetc;
00104 using ::fgetpos;
00105 using ::fgets;
00106 using ::fopen;
00107 using ::fprintf;
00108 using ::fputc;
00109 using ::fputs;
00110 using ::fread;
00111 using ::freopen;
00112 using ::fscanf;
00113 using ::fseek;
00114 using ::fsetpos;
00115 using ::ftell;
00116 using ::fwrite;
00117 using ::getc;
00118 using ::getchar;
00119 using ::gets;
00120 using ::perror;
00121 using ::printf;
00122 using ::putc;
00123 using ::putchar;
00124 using ::puts;
00125 using ::remove;
00126 using ::rename;
00127 using ::rewind;
00128 using ::scanf;
00129 using ::setbuf;
00130 using ::setvbuf;
00131 using ::sprintf;
00132 using ::sscanf;
00133 using ::tmpfile;
00134 using ::tmpnam;
00135 using ::ungetc;
00136 using ::vfprintf;
00137 using ::vprintf;
00138 using ::vsprintf;
00139
00140 _GLIBCXX_END_NAMESPACE
00141
00142 #if _GLIBCXX_USE_C99
00143
00144 #undef snprintf
00145 #undef vfscanf
00146 #undef vscanf
00147 #undef vsnprintf
00148 #undef vsscanf
00149
00150 _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
00151
00152 #if _GLIBCXX_USE_C99_CHECK || _GLIBCXX_USE_C99_DYNAMIC
00153 extern "C" int
00154 (snprintf)(char * restrict, size_t, const char * restrict, ...);
00155 extern "C" int
00156 (vfscanf)(FILE * restrict, const char * restrict, __gnuc_va_list);
00157 extern "C" int (vscanf)(const char * restrict, __gnuc_va_list);
00158 extern "C" int
00159 (vsnprintf)(char * restrict, size_t, const char * restrict, __gnuc_va_list);
00160 extern "C" int
00161 (vsscanf)(const char * restrict, const char * restrict, __gnuc_va_list);
00162 #endif
00163
00164 #if !_GLIBCXX_USE_C99_DYNAMIC
00165 using ::snprintf;
00166 using ::vfscanf;
00167 using ::vscanf;
00168 using ::vsnprintf;
00169 using ::vsscanf;
00170 #endif
00171
00172 _GLIBCXX_END_NAMESPACE
00173
00174 _GLIBCXX_BEGIN_NAMESPACE(std)
00175
00176 using ::__gnu_cxx::snprintf;
00177 using ::__gnu_cxx::vfscanf;
00178 using ::__gnu_cxx::vscanf;
00179 using ::__gnu_cxx::vsnprintf;
00180 using ::__gnu_cxx::vsscanf;
00181
00182 _GLIBCXX_END_NAMESPACE
00183
00184 #endif // _GLIBCXX_USE_C99
00185
00186 #ifdef __GXX_EXPERIMENTAL_CXX0X__
00187 # if defined(_GLIBCXX_INCLUDE_AS_TR1)
00188 # error C++0x header cannot be included from TR1 header
00189 # endif
00190 # if defined(_GLIBCXX_INCLUDE_AS_CXX0X)
00191 # include <tr1_impl/cstdio>
00192 # else
00193 # define _GLIBCXX_INCLUDE_AS_CXX0X
00194 # define _GLIBCXX_BEGIN_NAMESPACE_TR1
00195 # define _GLIBCXX_END_NAMESPACE_TR1
00196 # define _GLIBCXX_TR1
00197 # include <tr1_impl/cstdio>
00198 # undef _GLIBCXX_TR1
00199 # undef _GLIBCXX_END_NAMESPACE_TR1
00200 # undef _GLIBCXX_BEGIN_NAMESPACE_TR1
00201 # undef _GLIBCXX_INCLUDE_AS_CXX0X
00202 # endif
00203 #endif
00204
00205 #endif