/home/ntakagi/work/STLport-5.1.5/stlport/stl/_cstdio.hGo 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 # include _STLP_NATIVE_C_HEADER(stdarg.h) 00021 #endif 00022 00023 #if defined (_STLP_USE_NEW_C_HEADERS) 00024 # include _STLP_NATIVE_CPP_C_HEADER(cstdio) 00025 #else 00026 # include _STLP_NATIVE_C_HEADER(stdio.h) 00027 #endif 00028 00029 #if (defined (__MWERKS__) && !defined (N_PLAT_NLM)) || defined (__BORLANDC__) 00030 # undef stdin 00031 # undef stdout 00032 # undef stderr 00033 # if defined (__MWERKS__) 00034 # define stdin (&_STLP_VENDOR_CSTD::__files[0]) 00035 # define stdout (&_STLP_VENDOR_CSTD::__files[1]) 00036 # define stderr (&_STLP_VENDOR_CSTD::__files[2]) 00037 # elif defined (__BORLANDC__) 00038 # define stdin (&_STLP_VENDOR_CSTD::_streams[0]) 00039 # define stdout (&_STLP_VENDOR_CSTD::_streams[1]) 00040 # define stderr (&_STLP_VENDOR_CSTD::_streams[2]) 00041 # endif 00042 #endif 00043 00044 #if defined (_STLP_MSVC_LIB) && (_STLP_MSVC_LIB < 1400) || defined (_STLP_USING_PLATFORM_SDK_COMPILER) 00045 inline int vsnprintf(char *s1, size_t n, const char *s2, va_list v) 00046 { return _STLP_VENDOR_CSTD::_vsnprintf(s1, n, s2, v); } 00047 #endif 00048 00049 #if defined (_STLP_IMPORT_VENDOR_CSTD ) 00050 _STLP_BEGIN_NAMESPACE 00051 using _STLP_VENDOR_CSTD::FILE; 00052 using _STLP_VENDOR_CSTD::fpos_t; 00053 using _STLP_VENDOR_CSTD::size_t; 00054 00055 // undef obsolete macros 00056 # undef putc 00057 # undef getc 00058 # undef getchar 00059 # undef putchar 00060 # undef feof 00061 # undef ferror 00062 00063 # if !defined (_STLP_NO_CSTD_FUNCTION_IMPORTS) 00064 using _STLP_VENDOR_CSTD::clearerr; 00065 using _STLP_VENDOR_CSTD::fclose; 00066 using _STLP_VENDOR_CSTD::feof; 00067 using _STLP_VENDOR_CSTD::ferror; 00068 using _STLP_VENDOR_CSTD::fflush; 00069 using _STLP_VENDOR_CSTD::fgetc; 00070 using _STLP_VENDOR_CSTD::fgetpos; 00071 using _STLP_VENDOR_CSTD::fgets; 00072 using _STLP_VENDOR_CSTD::fopen; 00073 using _STLP_VENDOR_CSTD::fprintf; 00074 using _STLP_VENDOR_CSTD::fputc; 00075 using _STLP_VENDOR_CSTD::fputs; 00076 using _STLP_VENDOR_CSTD::fread; 00077 # if !defined (_WIN32_WCE) || (_WIN32_WCE < 0x500) // CE5 stopped supplying this 00078 using _STLP_VENDOR_CSTD::freopen; 00079 # endif 00080 using _STLP_VENDOR_CSTD::fscanf; 00081 using _STLP_VENDOR_CSTD::fseek; 00082 using _STLP_VENDOR_CSTD::fsetpos; 00083 using _STLP_VENDOR_CSTD::ftell; 00084 using _STLP_VENDOR_CSTD::fwrite; 00085 00086 # if !(defined (__IBMCPP__) && (__IBMCPP__ >= 500)) 00087 # if !defined (_WIN32_WCE) || (_WIN32_WCE < 0x500) // CE5 stopped supplying this except as macros. TODO: use inline function to redirect to the macros? 00088 using _STLP_VENDOR_CSTD::getc; 00089 using _STLP_VENDOR_CSTD::putc; 00090 # endif 00091 using _STLP_VENDOR_CSTD::getchar; 00092 using _STLP_VENDOR_CSTD::putchar; 00093 # endif 00094 00095 using _STLP_VENDOR_CSTD::gets; 00096 # if !defined (_WIN32_WCE) || (_WIN32_WCE < 0x500) // CE5 stopped supplying this 00097 using _STLP_VENDOR_CSTD::perror; 00098 # endif 00099 using _STLP_VENDOR_CSTD::printf; 00100 using _STLP_VENDOR_CSTD::puts; 00101 # if !defined (_WIN32_WCE) || (_WIN32_WCE < 0x500) // CE5 stopped supplying this 00102 using _STLP_VENDOR_CSTD::remove; 00103 using _STLP_VENDOR_CSTD::rename; 00104 using _STLP_VENDOR_CSTD::rewind; 00105 using _STLP_VENDOR_CSTD::setbuf; 00106 using _STLP_VENDOR_CSTD::tmpfile; 00107 using _STLP_VENDOR_CSTD::tmpnam; 00108 # endif 00109 using _STLP_VENDOR_CSTD::scanf; 00110 using _STLP_VENDOR_CSTD::setvbuf; 00111 using _STLP_VENDOR_CSTD::sprintf; 00112 using _STLP_VENDOR_CSTD::sscanf; 00113 using _STLP_VENDOR_CSTD::ungetc; 00114 using _STLP_VENDOR_CSTD::vfprintf; 00115 using _STLP_VENDOR_CSTD::vprintf; 00116 using _STLP_VENDOR_CSTD::vsprintf; 00117 # if ((defined (__MWERKS__) && !defined (N_PLAT_NLM)) || (defined (_STLP_MSVC_LIB) && (_STLP_MSVC_LIB < 1400)) || \ 00118 (defined (__BORLANDC__))) 00119 using _STLP_VENDOR_CSTD::vsnprintf; 00120 # endif 00121 # endif /* _STLP_NO_CSTD_FUNCTION_IMPORTS */ 00122 _STLP_END_NAMESPACE 00123 #endif /* _STLP_IMPORT_VENDOR_CSTD */ 00124 00125 #endif /* _STLP_INTERNAL_CSTDIO */
Generated on Mon Mar 10 15:32:20 2008 by ![]() |