1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/tools/stlport/stl/_cstdio.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -0,0 +1,125 @@
1.4 +/*
1.5 + * Copyright (c) 1999
1.6 + * Boris Fomitchev
1.7 + *
1.8 + * This material is provided "as is", with absolutely no warranty expressed
1.9 + * or implied. Any use is at your own risk.
1.10 + *
1.11 + * Permission to use or copy this software for any purpose is hereby granted
1.12 + * without fee, provided the above notices are retained on all copies.
1.13 + * Permission to modify the code and to distribute modified code is granted,
1.14 + * provided the above notices are retained, and a notice that the code was
1.15 + * modified is included with the above copyright notice.
1.16 + *
1.17 + */
1.18 +
1.19 +#ifndef _STLP_INTERNAL_CSTDIO
1.20 +#define _STLP_INTERNAL_CSTDIO
1.21 +
1.22 +#if defined (__Lynx__)
1.23 +# include _STLP_NATIVE_C_HEADER(stdarg.h)
1.24 +#endif
1.25 +
1.26 +#if defined (_STLP_USE_NEW_C_HEADERS)
1.27 +# include _STLP_NATIVE_CPP_C_HEADER(cstdio)
1.28 +#else
1.29 +# include _STLP_NATIVE_C_HEADER(stdio.h)
1.30 +#endif
1.31 +
1.32 +#if (defined (__MWERKS__) && !defined (N_PLAT_NLM)) || defined (__BORLANDC__)
1.33 +# undef stdin
1.34 +# undef stdout
1.35 +# undef stderr
1.36 +# if defined (__MWERKS__)
1.37 +# define stdin (&_STLP_VENDOR_CSTD::__files[0])
1.38 +# define stdout (&_STLP_VENDOR_CSTD::__files[1])
1.39 +# define stderr (&_STLP_VENDOR_CSTD::__files[2])
1.40 +# elif defined (__BORLANDC__)
1.41 +# define stdin (&_STLP_VENDOR_CSTD::_streams[0])
1.42 +# define stdout (&_STLP_VENDOR_CSTD::_streams[1])
1.43 +# define stderr (&_STLP_VENDOR_CSTD::_streams[2])
1.44 +# endif
1.45 +#endif
1.46 +
1.47 +#if defined (_STLP_MSVC_LIB) && (_STLP_MSVC_LIB < 1400) || defined (_STLP_USING_PLATFORM_SDK_COMPILER)
1.48 +inline int vsnprintf(char *s1, size_t n, const char *s2, va_list v)
1.49 +{ return _STLP_VENDOR_CSTD::_vsnprintf(s1, n, s2, v); }
1.50 +#endif
1.51 +
1.52 +#if defined (_STLP_IMPORT_VENDOR_CSTD )
1.53 +_STLP_BEGIN_NAMESPACE
1.54 +using _STLP_VENDOR_CSTD::FILE;
1.55 +using _STLP_VENDOR_CSTD::fpos_t;
1.56 +using _STLP_VENDOR_CSTD::size_t;
1.57 +
1.58 +// undef obsolete macros
1.59 +# undef putc
1.60 +# undef getc
1.61 +# undef getchar
1.62 +# undef putchar
1.63 +# undef feof
1.64 +# undef ferror
1.65 +
1.66 +# if !defined (_STLP_NO_CSTD_FUNCTION_IMPORTS)
1.67 +using _STLP_VENDOR_CSTD::clearerr;
1.68 +using _STLP_VENDOR_CSTD::fclose;
1.69 +using _STLP_VENDOR_CSTD::feof;
1.70 +using _STLP_VENDOR_CSTD::ferror;
1.71 +using _STLP_VENDOR_CSTD::fflush;
1.72 +using _STLP_VENDOR_CSTD::fgetc;
1.73 +using _STLP_VENDOR_CSTD::fgetpos;
1.74 +using _STLP_VENDOR_CSTD::fgets;
1.75 +using _STLP_VENDOR_CSTD::fopen;
1.76 +using _STLP_VENDOR_CSTD::fprintf;
1.77 +using _STLP_VENDOR_CSTD::fputc;
1.78 +using _STLP_VENDOR_CSTD::fputs;
1.79 +using _STLP_VENDOR_CSTD::fread;
1.80 +# if _WIN32_WCE < 0x500 // CE5 stopped supplying this
1.81 +using _STLP_VENDOR_CSTD::freopen;
1.82 +# endif
1.83 +using _STLP_VENDOR_CSTD::fscanf;
1.84 +using _STLP_VENDOR_CSTD::fseek;
1.85 +using _STLP_VENDOR_CSTD::fsetpos;
1.86 +using _STLP_VENDOR_CSTD::ftell;
1.87 +using _STLP_VENDOR_CSTD::fwrite;
1.88 +
1.89 +# if !(defined (__IBMCPP__) && (__IBMCPP__ >= 500))
1.90 +# if _WIN32_WCE < 0x500 // CE5 stopped supplying this except as macros. TODO: use inline function to redirect to the macros?
1.91 + using _STLP_VENDOR_CSTD::getc;
1.92 + using _STLP_VENDOR_CSTD::putc;
1.93 +# endif
1.94 + using _STLP_VENDOR_CSTD::getchar;
1.95 + using _STLP_VENDOR_CSTD::putchar;
1.96 +# endif
1.97 +
1.98 +using _STLP_VENDOR_CSTD::gets;
1.99 +# if _WIN32_WCE < 0x500 // CE5 stopped supplying this
1.100 +using _STLP_VENDOR_CSTD::perror;
1.101 +# endif
1.102 +using _STLP_VENDOR_CSTD::printf;
1.103 +using _STLP_VENDOR_CSTD::puts;
1.104 +# if _WIN32_WCE < 0x500 // CE5 stopped supplying this
1.105 +using _STLP_VENDOR_CSTD::remove;
1.106 +using _STLP_VENDOR_CSTD::rename;
1.107 +using _STLP_VENDOR_CSTD::rewind;
1.108 +using _STLP_VENDOR_CSTD::setbuf;
1.109 +using _STLP_VENDOR_CSTD::tmpfile;
1.110 +using _STLP_VENDOR_CSTD::tmpnam;
1.111 +# endif
1.112 +using _STLP_VENDOR_CSTD::scanf;
1.113 +using _STLP_VENDOR_CSTD::setvbuf;
1.114 +using _STLP_VENDOR_CSTD::sprintf;
1.115 +using _STLP_VENDOR_CSTD::sscanf;
1.116 +using _STLP_VENDOR_CSTD::ungetc;
1.117 +using _STLP_VENDOR_CSTD::vfprintf;
1.118 +using _STLP_VENDOR_CSTD::vprintf;
1.119 +using _STLP_VENDOR_CSTD::vsprintf;
1.120 +# if ((defined (__MWERKS__) && !defined (N_PLAT_NLM)) || (defined (_STLP_MSVC_LIB) && (_STLP_MSVC_LIB < 1400)) || \
1.121 + (defined (__BORLANDC__)))
1.122 +using _STLP_VENDOR_CSTD::vsnprintf;
1.123 +# endif
1.124 +# endif /* _STLP_NO_CSTD_FUNCTION_IMPORTS */
1.125 +_STLP_END_NAMESPACE
1.126 +#endif /* _STLP_IMPORT_VENDOR_CSTD */
1.127 +
1.128 +#endif /* _STLP_INTERNAL_CSTDIO */