epoc32/include/stdapis/stlport/cstd/cstdio
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
     1.1 --- a/epoc32/include/stdapis/stlport/cstd/cstdio	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/stdapis/stlport/cstd/cstdio	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,147 @@
     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 +#ifdef __SYMBIAN32__
    1.34 +#  include <stdarg.h>
    1.35 +#else
    1.36 +# include _STLP_NATIVE_C_HEADER(stdarg.h)
    1.37 +#endif
    1.38 +#endif
    1.39 +
    1.40 +# if defined (_STLP_USE_NEW_C_HEADERS)
    1.41 +#  include _STLP_NATIVE_CPP_C_HEADER(cstdio)
    1.42 +# else
    1.43 +#ifdef __SYMBIAN32__
    1.44 +#  include <stdio.h>
    1.45 +#else
    1.46 +# include _STLP_NATIVE_C_HEADER(stdio.h)
    1.47 +#endif
    1.48 +# endif
    1.49 +
    1.50 +
    1.51 +# if defined(__MWERKS__) && !defined (__SYMBIAN32__)
    1.52 +#  undef stdin
    1.53 +#  undef stdout
    1.54 +#  undef stderr
    1.55 +#  define stdin  	(&_STLP_VENDOR_CSTD::__files[0])
    1.56 +#  define stdout	(&_STLP_VENDOR_CSTD::__files[1])
    1.57 +#  define stderr	(&_STLP_VENDOR_CSTD::__files[2])
    1.58 +# endif
    1.59 +
    1.60 +
    1.61 +#  if (defined (_STLP_MSVC) || defined (__ICL)) && ! defined (__WINS__)
    1.62 +namespace _STLP_VENDOR_CSTD {
    1.63 +inline
    1.64 +int vsnprintf(char *s1, size_t n, const char *s2, va_list v)
    1.65 +{
    1.66 +return ::_vsnprintf(s1, n, s2, v);
    1.67 +}
    1.68 +}
    1.69 +#  endif
    1.70 +
    1.71 +# ifdef _STLP_IMPORT_VENDOR_CSTD 
    1.72 +_STLP_BEGIN_NAMESPACE
    1.73 +using _STLP_VENDOR_CSTD::FILE;
    1.74 +using _STLP_VENDOR_CSTD::fpos_t;
    1.75 +using _STLP_VENDOR_CSTD::size_t;
    1.76 +
    1.77 +// undef obsolete macros
    1.78 +# undef putc
    1.79 +# undef getc
    1.80 +# undef getchar
    1.81 +# undef putchar
    1.82 +# undef feof
    1.83 +# undef ferror
    1.84 +# undef clearerr
    1.85 +
    1.86 +#  ifndef _STLP_NO_CSTD_FUNCTION_IMPORTS
    1.87 +using _STLP_VENDOR_CSTD::clearerr;
    1.88 +using _STLP_VENDOR_CSTD::fclose;
    1.89 +using _STLP_VENDOR_CSTD::feof;
    1.90 +using _STLP_VENDOR_CSTD::ferror;
    1.91 +using _STLP_VENDOR_CSTD::fflush;
    1.92 +using _STLP_VENDOR_CSTD::fgetc;
    1.93 +using _STLP_VENDOR_CSTD::fgetpos;
    1.94 +using _STLP_VENDOR_CSTD::fgets;
    1.95 +using _STLP_VENDOR_CSTD::fopen;
    1.96 +using _STLP_VENDOR_CSTD::fprintf;
    1.97 +using _STLP_VENDOR_CSTD::fputc;
    1.98 +using _STLP_VENDOR_CSTD::fputs;
    1.99 +using _STLP_VENDOR_CSTD::fread;
   1.100 +using _STLP_VENDOR_CSTD::freopen;
   1.101 +using _STLP_VENDOR_CSTD::fscanf;
   1.102 +using _STLP_VENDOR_CSTD::fseek;
   1.103 +using _STLP_VENDOR_CSTD::fsetpos;
   1.104 +using _STLP_VENDOR_CSTD::ftell;
   1.105 +using _STLP_VENDOR_CSTD::fwrite;
   1.106 +
   1.107 +#   if  ( !( defined (__IBMCPP__) && (__IBMCPP__ >= 500) )  )
   1.108 + using _STLP_VENDOR_CSTD::getc;
   1.109 + using _STLP_VENDOR_CSTD::getchar;
   1.110 + using _STLP_VENDOR_CSTD::putc;
   1.111 + using _STLP_VENDOR_CSTD::putchar;
   1.112 +#   endif
   1.113 +
   1.114 +using _STLP_VENDOR_CSTD::gets;
   1.115 +using _STLP_VENDOR_CSTD::perror;
   1.116 +using _STLP_VENDOR_CSTD::printf;
   1.117 +using _STLP_VENDOR_CSTD::puts;
   1.118 +using _STLP_VENDOR_CSTD::remove;
   1.119 +using _STLP_VENDOR_CSTD::rename;
   1.120 +using _STLP_VENDOR_CSTD::rewind;
   1.121 +using _STLP_VENDOR_CSTD::scanf;
   1.122 +using _STLP_VENDOR_CSTD::setbuf;
   1.123 +using _STLP_VENDOR_CSTD::setvbuf;
   1.124 +using _STLP_VENDOR_CSTD::sprintf;
   1.125 +using _STLP_VENDOR_CSTD::sscanf;
   1.126 +using _STLP_VENDOR_CSTD::tmpfile;
   1.127 +using _STLP_VENDOR_CSTD::tmpnam;
   1.128 +using _STLP_VENDOR_CSTD::ungetc;
   1.129 +using _STLP_VENDOR_CSTD::vfprintf;
   1.130 +using _STLP_VENDOR_CSTD::vprintf;
   1.131 +using _STLP_VENDOR_CSTD::vsprintf;
   1.132 +#   if (defined (__MWERKS__) || defined (_STLP_MSVC) || defined (__ICL) || \
   1.133 +( defined (__BORLANDC__) && __BORLANDC__ > 0x530))
   1.134 +// using _STLP_VENDOR_CSTD::vsnprintf;
   1.135 +#   endif
   1.136 +#  endif /* _STLP_NO_CSTD_FUNCTION_IMPORTS */
   1.137 +_STLP_END_NAMESPACE
   1.138 +# endif /* _STLP_IMPORT_VENDOR_CSTD */
   1.139 +
   1.140 +# if (_STLP_OUTERMOST_HEADER_ID == 15)
   1.141 +#  include <stl/_epilog.h>
   1.142 +#  undef _STLP_OUTERMOST_HEADER_ID
   1.143 +# endif
   1.144 +
   1.145 +# endif /* ! defined (_STLP_WINCE) */
   1.146 +
   1.147 +#endif
   1.148 +
   1.149 +// Local Variables:
   1.150 +// mode:C++
   1.151 +// End: