epoc32/include/stdapis/stlport/cstd/cstdio
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
--- a/epoc32/include/stdapis/stlport/cstd/cstdio	Tue Nov 24 13:55:44 2009 +0000
+++ b/epoc32/include/stdapis/stlport/cstd/cstdio	Tue Mar 16 16:12:26 2010 +0000
@@ -1,1 +1,147 @@
-cstdio
+/*
+ * © Portions copyright (c) 2006-2007 Nokia Corporation.  All rights reserved.
+ *
+ * Copyright (c) 1999 
+ * Boris Fomitchev
+ *
+ * This material is provided "as is", with absolutely no warranty expressed
+ * or implied. Any use is at your own risk.
+ *
+ * Permission to use or copy this software for any purpose is hereby granted 
+ * without fee, provided the above notices are retained on all copies.
+ * Permission to modify the code and to distribute modified code is granted,
+ * provided the above notices are retained, and a notice that the code was
+ * modified is included with the above copyright notice.
+ *
+ */
+
+#ifndef _STLP_CSTDIO
+# define _STLP_CSTDIO
+
+# if ! defined (_STLP_WINCE)
+
+# ifndef _STLP_OUTERMOST_HEADER_ID
+#  define _STLP_OUTERMOST_HEADER_ID 15
+#  include <stl/_prolog.h>
+# endif
+
+#if defined (__Lynx__) || defined (__WINS__)
+#ifdef __SYMBIAN32__
+#  include <stdarg.h>
+#else
+# include _STLP_NATIVE_C_HEADER(stdarg.h)
+#endif
+#endif
+
+# if defined (_STLP_USE_NEW_C_HEADERS)
+#  include _STLP_NATIVE_CPP_C_HEADER(cstdio)
+# else
+#ifdef __SYMBIAN32__
+#  include <stdio.h>
+#else
+# include _STLP_NATIVE_C_HEADER(stdio.h)
+#endif
+# endif
+
+
+# if defined(__MWERKS__) && !defined (__SYMBIAN32__)
+#  undef stdin
+#  undef stdout
+#  undef stderr
+#  define stdin  	(&_STLP_VENDOR_CSTD::__files[0])
+#  define stdout	(&_STLP_VENDOR_CSTD::__files[1])
+#  define stderr	(&_STLP_VENDOR_CSTD::__files[2])
+# endif
+
+
+#  if (defined (_STLP_MSVC) || defined (__ICL)) && ! defined (__WINS__)
+namespace _STLP_VENDOR_CSTD {
+inline
+int vsnprintf(char *s1, size_t n, const char *s2, va_list v)
+{
+return ::_vsnprintf(s1, n, s2, v);
+}
+}
+#  endif
+
+# ifdef _STLP_IMPORT_VENDOR_CSTD 
+_STLP_BEGIN_NAMESPACE
+using _STLP_VENDOR_CSTD::FILE;
+using _STLP_VENDOR_CSTD::fpos_t;
+using _STLP_VENDOR_CSTD::size_t;
+
+// undef obsolete macros
+# undef putc
+# undef getc
+# undef getchar
+# undef putchar
+# undef feof
+# undef ferror
+# undef clearerr
+
+#  ifndef _STLP_NO_CSTD_FUNCTION_IMPORTS
+using _STLP_VENDOR_CSTD::clearerr;
+using _STLP_VENDOR_CSTD::fclose;
+using _STLP_VENDOR_CSTD::feof;
+using _STLP_VENDOR_CSTD::ferror;
+using _STLP_VENDOR_CSTD::fflush;
+using _STLP_VENDOR_CSTD::fgetc;
+using _STLP_VENDOR_CSTD::fgetpos;
+using _STLP_VENDOR_CSTD::fgets;
+using _STLP_VENDOR_CSTD::fopen;
+using _STLP_VENDOR_CSTD::fprintf;
+using _STLP_VENDOR_CSTD::fputc;
+using _STLP_VENDOR_CSTD::fputs;
+using _STLP_VENDOR_CSTD::fread;
+using _STLP_VENDOR_CSTD::freopen;
+using _STLP_VENDOR_CSTD::fscanf;
+using _STLP_VENDOR_CSTD::fseek;
+using _STLP_VENDOR_CSTD::fsetpos;
+using _STLP_VENDOR_CSTD::ftell;
+using _STLP_VENDOR_CSTD::fwrite;
+
+#   if  ( !( defined (__IBMCPP__) && (__IBMCPP__ >= 500) )  )
+ using _STLP_VENDOR_CSTD::getc;
+ using _STLP_VENDOR_CSTD::getchar;
+ using _STLP_VENDOR_CSTD::putc;
+ using _STLP_VENDOR_CSTD::putchar;
+#   endif
+
+using _STLP_VENDOR_CSTD::gets;
+using _STLP_VENDOR_CSTD::perror;
+using _STLP_VENDOR_CSTD::printf;
+using _STLP_VENDOR_CSTD::puts;
+using _STLP_VENDOR_CSTD::remove;
+using _STLP_VENDOR_CSTD::rename;
+using _STLP_VENDOR_CSTD::rewind;
+using _STLP_VENDOR_CSTD::scanf;
+using _STLP_VENDOR_CSTD::setbuf;
+using _STLP_VENDOR_CSTD::setvbuf;
+using _STLP_VENDOR_CSTD::sprintf;
+using _STLP_VENDOR_CSTD::sscanf;
+using _STLP_VENDOR_CSTD::tmpfile;
+using _STLP_VENDOR_CSTD::tmpnam;
+using _STLP_VENDOR_CSTD::ungetc;
+using _STLP_VENDOR_CSTD::vfprintf;
+using _STLP_VENDOR_CSTD::vprintf;
+using _STLP_VENDOR_CSTD::vsprintf;
+#   if (defined (__MWERKS__) || defined (_STLP_MSVC) || defined (__ICL) || \
+( defined (__BORLANDC__) && __BORLANDC__ > 0x530))
+// using _STLP_VENDOR_CSTD::vsnprintf;
+#   endif
+#  endif /* _STLP_NO_CSTD_FUNCTION_IMPORTS */
+_STLP_END_NAMESPACE
+# endif /* _STLP_IMPORT_VENDOR_CSTD */
+
+# if (_STLP_OUTERMOST_HEADER_ID == 15)
+#  include <stl/_epilog.h>
+#  undef _STLP_OUTERMOST_HEADER_ID
+# endif
+
+# endif /* ! defined (_STLP_WINCE) */
+
+#endif
+
+// Local Variables:
+// mode:C++
+// End: