Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygen_cstdio.h
Go to the documentation of this file.
00001 /* 00002 * Copyright (c) 1999 00003 * Boris Fomitchev 00004 * 00005 * This material is provided "as is", with absolutely no warranty expressed 00006 * or implied. Any use is at your own risk. 00007 * 00008 * Permission to use or copy this software for any purpose is hereby granted 00009 * without fee, provided the above notices are retained on all copies. 00010 * Permission to modify the code and to distribute modified code is granted, 00011 * provided the above notices are retained, and a notice that the code was 00012 * modified is included with the above copyright notice. 00013 * 00014 */ 00015 00016 #ifndef _STLP_INTERNAL_CSTDIO 00017 #define _STLP_INTERNAL_CSTDIO 00018 00019 #if defined (__Lynx__) 00020 # if defined (_STLP_HAS_INCLUDE_NEXT) 00021 # include_next <stdarg.h> 00022 # else 00023 # include _STLP_NATIVE_C_HEADER(stdarg.h) 00024 # endif 00025 #endif 00026 00027 #if defined (_STLP_USE_NEW_C_HEADERS) 00028 # if defined (_STLP_HAS_INCLUDE_NEXT) 00029 # include_next <cstdio> 00030 # else 00031 # include _STLP_NATIVE_CPP_C_HEADER(cstdio) 00032 # endif 00033 #else 00034 # include <stdio.h> 00035 #endif 00036 00037 #if defined (__MWERKS__) 00038 # undef stdin 00039 # undef stdout 00040 # undef stderr 00041 # define stdin (&_STLP_VENDOR_CSTD::__files[0]) 00042 # define stdout (&_STLP_VENDOR_CSTD::__files[1]) 00043 # define stderr (&_STLP_VENDOR_CSTD::__files[2]) 00044 #endif 00045 00046 #if defined (_STLP_MSVC_LIB) && (_STLP_MSVC_LIB < 1400) || defined (_STLP_USING_PLATFORM_SDK_COMPILER) 00047 inline int vsnprintf(char *s1, size_t n, const char *s2, va_list v) 00048 { return _STLP_VENDOR_CSTD::_vsnprintf(s1, n, s2, v); } 00049 #endif 00050 00051 #if defined (_STLP_IMPORT_VENDOR_CSTD ) 00052 _STLP_BEGIN_NAMESPACE 00053 using _STLP_VENDOR_CSTD::FILE; 00054 using _STLP_VENDOR_CSTD::fpos_t; 00055 using _STLP_VENDOR_CSTD::size_t; 00056 00057 // undef obsolete macros 00058 # undef putc 00059 # undef getc 00060 # undef getchar 00061 # undef putchar 00062 # undef feof 00063 # undef ferror 00064 00065 # if !defined (_STLP_NO_CSTD_FUNCTION_IMPORTS) 00066 using _STLP_VENDOR_CSTD::clearerr; 00067 using _STLP_VENDOR_CSTD::fclose; 00068 using _STLP_VENDOR_CSTD::feof; 00069 using _STLP_VENDOR_CSTD::ferror; 00070 using _STLP_VENDOR_CSTD::fflush; 00071 using _STLP_VENDOR_CSTD::fgetc; 00072 using _STLP_VENDOR_CSTD::fgetpos; 00073 using _STLP_VENDOR_CSTD::fgets; 00074 using _STLP_VENDOR_CSTD::fopen; 00075 using _STLP_VENDOR_CSTD::fprintf; 00076 using _STLP_VENDOR_CSTD::fputc; 00077 using _STLP_VENDOR_CSTD::fputs; 00078 using _STLP_VENDOR_CSTD::fread; 00079 # if !defined (_WIN32_WCE) || (_WIN32_WCE < 400) 00080 using _STLP_VENDOR_CSTD::freopen; 00081 # endif 00082 using _STLP_VENDOR_CSTD::fscanf; 00083 using _STLP_VENDOR_CSTD::fseek; 00084 using _STLP_VENDOR_CSTD::fsetpos; 00085 using _STLP_VENDOR_CSTD::ftell; 00086 using _STLP_VENDOR_CSTD::fwrite; 00087 00088 # if !(defined (__IBMCPP__) && (__IBMCPP__ >= 500)) 00089 # if !defined (_WIN32_WCE) || (_WIN32_WCE < 400) // Supplied as macros, TODO: use inline function to redirect to the macros? 00090 using _STLP_VENDOR_CSTD::getc; 00091 using _STLP_VENDOR_CSTD::putc; 00092 # endif 00093 using _STLP_VENDOR_CSTD::getchar; 00094 using _STLP_VENDOR_CSTD::putchar; 00095 # endif 00096 00097 using _STLP_VENDOR_CSTD::gets; 00098 # if !defined (_WIN32_WCE) || (_WIN32_WCE < 400) 00099 using _STLP_VENDOR_CSTD::perror; 00100 # endif 00101 using _STLP_VENDOR_CSTD::printf; 00102 using _STLP_VENDOR_CSTD::puts; 00103 # if !defined (_WIN32_WCE) || (_WIN32_WCE < 400) 00104 using _STLP_VENDOR_CSTD::remove; 00105 using _STLP_VENDOR_CSTD::rename; 00106 using _STLP_VENDOR_CSTD::rewind; 00107 using _STLP_VENDOR_CSTD::setbuf; 00108 using _STLP_VENDOR_CSTD::tmpfile; 00109 using _STLP_VENDOR_CSTD::tmpnam; 00110 # endif 00111 using _STLP_VENDOR_CSTD::scanf; 00112 using _STLP_VENDOR_CSTD::setvbuf; 00113 using _STLP_VENDOR_CSTD::sprintf; 00114 using _STLP_VENDOR_CSTD::sscanf; 00115 using _STLP_VENDOR_CSTD::ungetc; 00116 using _STLP_VENDOR_CSTD::vfprintf; 00117 using _STLP_VENDOR_CSTD::vprintf; 00118 using _STLP_VENDOR_CSTD::vsprintf; 00119 # if (defined (__MWERKS__) || (defined (_STLP_MSVC_LIB) && (_STLP_MSVC_LIB < 1400)) || \ 00120 (defined (__BORLANDC__))) 00121 using _STLP_VENDOR_CSTD::vsnprintf; 00122 # endif 00123 # endif /* _STLP_NO_CSTD_FUNCTION_IMPORTS */ 00124 _STLP_END_NAMESPACE 00125 #endif /* _STLP_IMPORT_VENDOR_CSTD */ 00126 00127 #endif /* _STLP_INTERNAL_CSTDIO */ Generated on Sun May 27 2012 04:28:52 for ReactOS by
1.7.6.1
|