1.1 --- a/epoc32/include/stdapis/stlport/cstdio Tue Nov 24 13:55:44 2009 +0000
1.2 +++ b/epoc32/include/stdapis/stlport/cstdio Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -1,1 +1,142 @@
1.4 -cstdio
1.5 +/*
1.6 + * © Portions copyright (c) 2006-2007 Nokia Corporation. All rights reserved.
1.7 + *
1.8 + * Copyright (c) 1999
1.9 + * Boris Fomitchev
1.10 + *
1.11 + * This material is provided "as is", with absolutely no warranty expressed
1.12 + * or implied. Any use is at your own risk.
1.13 + *
1.14 + * Permission to use or copy this software for any purpose is hereby granted
1.15 + * without fee, provided the above notices are retained on all copies.
1.16 + * Permission to modify the code and to distribute modified code is granted,
1.17 + * provided the above notices are retained, and a notice that the code was
1.18 + * modified is included with the above copyright notice.
1.19 + *
1.20 + */
1.21 +
1.22 +#ifndef _STLP_CSTDIO
1.23 +# define _STLP_CSTDIO
1.24 +
1.25 +# if ! defined (_STLP_WINCE)
1.26 +
1.27 +# ifndef _STLP_OUTERMOST_HEADER_ID
1.28 +# define _STLP_OUTERMOST_HEADER_ID 15
1.29 +# include <stl/_prolog.h>
1.30 +# endif
1.31 +
1.32 +#if defined (__Lynx__) || defined (__WINS__)
1.33 +# include _STLP_NATIVE_C_HEADER(stdarg.h)
1.34 +#endif
1.35 +
1.36 +# if defined (_STLP_USE_NEW_C_HEADERS)
1.37 +# include _STLP_NATIVE_CPP_C_HEADER(cstdio)
1.38 +# else
1.39 +#ifdef __SYMBIAN32__
1.40 +# include <stdio.h>
1.41 +#else
1.42 +# include _STLP_NATIVE_C_HEADER(stdio.h)
1.43 +#endif
1.44 +# endif
1.45 +
1.46 +
1.47 +# if defined(__MWERKS__) && !defined (__SYMBIAN32__)
1.48 +# undef stdin
1.49 +# undef stdout
1.50 +# undef stderr
1.51 +# define stdin (&_STLP_VENDOR_CSTD::__files[0])
1.52 +# define stdout (&_STLP_VENDOR_CSTD::__files[1])
1.53 +# define stderr (&_STLP_VENDOR_CSTD::__files[2])
1.54 +# endif
1.55 +
1.56 +
1.57 +# if (defined (_STLP_MSVC) || defined (__ICL)) && ! defined (__WINS__)
1.58 +namespace _STLP_VENDOR_CSTD {
1.59 +inline
1.60 +int vsnprintf(char *s1, size_t n, const char *s2, va_list v)
1.61 +{
1.62 +return ::_vsnprintf(s1, n, s2, v);
1.63 +}
1.64 +}
1.65 +# endif
1.66 +
1.67 +# ifdef _STLP_IMPORT_VENDOR_CSTD
1.68 +_STLP_BEGIN_NAMESPACE
1.69 +using _STLP_VENDOR_CSTD::FILE;
1.70 +using _STLP_VENDOR_CSTD::fpos_t;
1.71 +using _STLP_VENDOR_CSTD::size_t;
1.72 +
1.73 +// undef obsolete macros
1.74 +# undef putc
1.75 +# undef getc
1.76 +# undef getchar
1.77 +# undef putchar
1.78 +# undef feof
1.79 +# undef ferror
1.80 +# undef clearerr
1.81 +# ifndef _STLP_NO_CSTD_FUNCTION_IMPORTS
1.82 +using _STLP_VENDOR_CSTD::clearerr;
1.83 +using _STLP_VENDOR_CSTD::fclose;
1.84 +using _STLP_VENDOR_CSTD::feof;
1.85 +using _STLP_VENDOR_CSTD::ferror;
1.86 +using _STLP_VENDOR_CSTD::fflush;
1.87 +using _STLP_VENDOR_CSTD::fgetc;
1.88 +using _STLP_VENDOR_CSTD::fgetpos;
1.89 +using _STLP_VENDOR_CSTD::fgets;
1.90 +using _STLP_VENDOR_CSTD::fopen;
1.91 +using _STLP_VENDOR_CSTD::fprintf;
1.92 +using _STLP_VENDOR_CSTD::fputc;
1.93 +using _STLP_VENDOR_CSTD::fputs;
1.94 +using _STLP_VENDOR_CSTD::fread;
1.95 +using _STLP_VENDOR_CSTD::freopen;
1.96 +using _STLP_VENDOR_CSTD::fscanf;
1.97 +using _STLP_VENDOR_CSTD::fseek;
1.98 +using _STLP_VENDOR_CSTD::fsetpos;
1.99 +using _STLP_VENDOR_CSTD::ftell;
1.100 +using _STLP_VENDOR_CSTD::fwrite;
1.101 +
1.102 +# if ( !( defined (__IBMCPP__) && (__IBMCPP__ >= 500) ) )
1.103 + using _STLP_VENDOR_CSTD::getc;
1.104 + using _STLP_VENDOR_CSTD::getchar;
1.105 + using _STLP_VENDOR_CSTD::putc;
1.106 + using _STLP_VENDOR_CSTD::putchar;
1.107 +# endif
1.108 +
1.109 +using _STLP_VENDOR_CSTD::gets;
1.110 +using _STLP_VENDOR_CSTD::perror;
1.111 +using _STLP_VENDOR_CSTD::printf;
1.112 +using _STLP_VENDOR_CSTD::puts;
1.113 +using _STLP_VENDOR_CSTD::remove;
1.114 +using _STLP_VENDOR_CSTD::rename;
1.115 +using _STLP_VENDOR_CSTD::rewind;
1.116 +using _STLP_VENDOR_CSTD::scanf;
1.117 +using _STLP_VENDOR_CSTD::setbuf;
1.118 +using _STLP_VENDOR_CSTD::setvbuf;
1.119 +using _STLP_VENDOR_CSTD::sprintf;
1.120 +using _STLP_VENDOR_CSTD::sscanf;
1.121 +using _STLP_VENDOR_CSTD::tmpfile;
1.122 +using _STLP_VENDOR_CSTD::tmpnam;
1.123 +using _STLP_VENDOR_CSTD::ungetc;
1.124 +using _STLP_VENDOR_CSTD::vfprintf;
1.125 +using _STLP_VENDOR_CSTD::vprintf;
1.126 +using _STLP_VENDOR_CSTD::vsprintf;
1.127 +# if (defined (__MWERKS__) || defined (_STLP_MSVC) || defined (__ICL) || \
1.128 +( defined (__BORLANDC__) && __BORLANDC__ > 0x530))
1.129 +// using _STLP_VENDOR_CSTD::vsnprintf;
1.130 +# endif
1.131 +# endif /* _STLP_NO_CSTD_FUNCTION_IMPORTS */
1.132 +_STLP_END_NAMESPACE
1.133 +# endif /* _STLP_IMPORT_VENDOR_CSTD */
1.134 +
1.135 +# if (_STLP_OUTERMOST_HEADER_ID == 15)
1.136 +# include <stl/_epilog.h>
1.137 +# undef _STLP_OUTERMOST_HEADER_ID
1.138 +# endif
1.139 +
1.140 +# endif /* ! defined (_STLP_WINCE) */
1.141 +
1.142 +#endif
1.143 +
1.144 +// Local Variables:
1.145 +// mode:C++
1.146 +// End: