epoc32/include/stdapis/stlport/cstd/cstdio
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
permissions -rw-r--r--
Final list of Symbian^2 public API header files
williamr@2
     1
/*
williamr@2
     2
 * © Portions copyright (c) 2006-2007 Nokia Corporation.  All rights reserved.
williamr@2
     3
 *
williamr@2
     4
 * Copyright (c) 1999 
williamr@2
     5
 * Boris Fomitchev
williamr@2
     6
 *
williamr@2
     7
 * This material is provided "as is", with absolutely no warranty expressed
williamr@2
     8
 * or implied. Any use is at your own risk.
williamr@2
     9
 *
williamr@2
    10
 * Permission to use or copy this software for any purpose is hereby granted 
williamr@2
    11
 * without fee, provided the above notices are retained on all copies.
williamr@2
    12
 * Permission to modify the code and to distribute modified code is granted,
williamr@2
    13
 * provided the above notices are retained, and a notice that the code was
williamr@2
    14
 * modified is included with the above copyright notice.
williamr@2
    15
 *
williamr@2
    16
 */
williamr@2
    17
williamr@2
    18
#ifndef _STLP_CSTDIO
williamr@2
    19
# define _STLP_CSTDIO
williamr@2
    20
williamr@2
    21
# if ! defined (_STLP_WINCE)
williamr@2
    22
williamr@2
    23
# ifndef _STLP_OUTERMOST_HEADER_ID
williamr@2
    24
#  define _STLP_OUTERMOST_HEADER_ID 15
williamr@2
    25
#  include <stl/_prolog.h>
williamr@2
    26
# endif
williamr@2
    27
williamr@2
    28
#if defined (__Lynx__) || defined (__WINS__)
williamr@2
    29
#ifdef __SYMBIAN32__
williamr@2
    30
#  include <stdarg.h>
williamr@2
    31
#else
williamr@2
    32
# include _STLP_NATIVE_C_HEADER(stdarg.h)
williamr@2
    33
#endif
williamr@2
    34
#endif
williamr@2
    35
williamr@2
    36
# if defined (_STLP_USE_NEW_C_HEADERS)
williamr@2
    37
#  include _STLP_NATIVE_CPP_C_HEADER(cstdio)
williamr@2
    38
# else
williamr@2
    39
#ifdef __SYMBIAN32__
williamr@2
    40
#  include <stdio.h>
williamr@2
    41
#else
williamr@2
    42
# include _STLP_NATIVE_C_HEADER(stdio.h)
williamr@2
    43
#endif
williamr@2
    44
# endif
williamr@2
    45
williamr@2
    46
williamr@2
    47
# if defined(__MWERKS__) && !defined (__SYMBIAN32__)
williamr@2
    48
#  undef stdin
williamr@2
    49
#  undef stdout
williamr@2
    50
#  undef stderr
williamr@2
    51
#  define stdin  	(&_STLP_VENDOR_CSTD::__files[0])
williamr@2
    52
#  define stdout	(&_STLP_VENDOR_CSTD::__files[1])
williamr@2
    53
#  define stderr	(&_STLP_VENDOR_CSTD::__files[2])
williamr@2
    54
# endif
williamr@2
    55
williamr@2
    56
williamr@2
    57
#  if (defined (_STLP_MSVC) || defined (__ICL)) && ! defined (__WINS__)
williamr@2
    58
namespace _STLP_VENDOR_CSTD {
williamr@2
    59
inline
williamr@2
    60
int vsnprintf(char *s1, size_t n, const char *s2, va_list v)
williamr@2
    61
{
williamr@2
    62
return ::_vsnprintf(s1, n, s2, v);
williamr@2
    63
}
williamr@2
    64
}
williamr@2
    65
#  endif
williamr@2
    66
williamr@2
    67
# ifdef _STLP_IMPORT_VENDOR_CSTD 
williamr@2
    68
_STLP_BEGIN_NAMESPACE
williamr@2
    69
using _STLP_VENDOR_CSTD::FILE;
williamr@2
    70
using _STLP_VENDOR_CSTD::fpos_t;
williamr@2
    71
using _STLP_VENDOR_CSTD::size_t;
williamr@2
    72
williamr@2
    73
// undef obsolete macros
williamr@2
    74
# undef putc
williamr@2
    75
# undef getc
williamr@2
    76
# undef getchar
williamr@2
    77
# undef putchar
williamr@2
    78
# undef feof
williamr@2
    79
# undef ferror
williamr@2
    80
# undef clearerr
williamr@2
    81
williamr@2
    82
#  ifndef _STLP_NO_CSTD_FUNCTION_IMPORTS
williamr@2
    83
using _STLP_VENDOR_CSTD::clearerr;
williamr@2
    84
using _STLP_VENDOR_CSTD::fclose;
williamr@2
    85
using _STLP_VENDOR_CSTD::feof;
williamr@2
    86
using _STLP_VENDOR_CSTD::ferror;
williamr@2
    87
using _STLP_VENDOR_CSTD::fflush;
williamr@2
    88
using _STLP_VENDOR_CSTD::fgetc;
williamr@2
    89
using _STLP_VENDOR_CSTD::fgetpos;
williamr@2
    90
using _STLP_VENDOR_CSTD::fgets;
williamr@2
    91
using _STLP_VENDOR_CSTD::fopen;
williamr@2
    92
using _STLP_VENDOR_CSTD::fprintf;
williamr@2
    93
using _STLP_VENDOR_CSTD::fputc;
williamr@2
    94
using _STLP_VENDOR_CSTD::fputs;
williamr@2
    95
using _STLP_VENDOR_CSTD::fread;
williamr@2
    96
using _STLP_VENDOR_CSTD::freopen;
williamr@2
    97
using _STLP_VENDOR_CSTD::fscanf;
williamr@2
    98
using _STLP_VENDOR_CSTD::fseek;
williamr@2
    99
using _STLP_VENDOR_CSTD::fsetpos;
williamr@2
   100
using _STLP_VENDOR_CSTD::ftell;
williamr@2
   101
using _STLP_VENDOR_CSTD::fwrite;
williamr@2
   102
williamr@2
   103
#   if  ( !( defined (__IBMCPP__) && (__IBMCPP__ >= 500) )  )
williamr@2
   104
 using _STLP_VENDOR_CSTD::getc;
williamr@2
   105
 using _STLP_VENDOR_CSTD::getchar;
williamr@2
   106
 using _STLP_VENDOR_CSTD::putc;
williamr@2
   107
 using _STLP_VENDOR_CSTD::putchar;
williamr@2
   108
#   endif
williamr@2
   109
williamr@2
   110
using _STLP_VENDOR_CSTD::gets;
williamr@2
   111
using _STLP_VENDOR_CSTD::perror;
williamr@2
   112
using _STLP_VENDOR_CSTD::printf;
williamr@2
   113
using _STLP_VENDOR_CSTD::puts;
williamr@2
   114
using _STLP_VENDOR_CSTD::remove;
williamr@2
   115
using _STLP_VENDOR_CSTD::rename;
williamr@2
   116
using _STLP_VENDOR_CSTD::rewind;
williamr@2
   117
using _STLP_VENDOR_CSTD::scanf;
williamr@2
   118
using _STLP_VENDOR_CSTD::setbuf;
williamr@2
   119
using _STLP_VENDOR_CSTD::setvbuf;
williamr@2
   120
using _STLP_VENDOR_CSTD::sprintf;
williamr@2
   121
using _STLP_VENDOR_CSTD::sscanf;
williamr@2
   122
using _STLP_VENDOR_CSTD::tmpfile;
williamr@2
   123
using _STLP_VENDOR_CSTD::tmpnam;
williamr@2
   124
using _STLP_VENDOR_CSTD::ungetc;
williamr@2
   125
using _STLP_VENDOR_CSTD::vfprintf;
williamr@2
   126
using _STLP_VENDOR_CSTD::vprintf;
williamr@2
   127
using _STLP_VENDOR_CSTD::vsprintf;
williamr@2
   128
#   if (defined (__MWERKS__) || defined (_STLP_MSVC) || defined (__ICL) || \
williamr@2
   129
( defined (__BORLANDC__) && __BORLANDC__ > 0x530))
williamr@2
   130
// using _STLP_VENDOR_CSTD::vsnprintf;
williamr@2
   131
#   endif
williamr@2
   132
#  endif /* _STLP_NO_CSTD_FUNCTION_IMPORTS */
williamr@2
   133
_STLP_END_NAMESPACE
williamr@2
   134
# endif /* _STLP_IMPORT_VENDOR_CSTD */
williamr@2
   135
williamr@2
   136
# if (_STLP_OUTERMOST_HEADER_ID == 15)
williamr@2
   137
#  include <stl/_epilog.h>
williamr@2
   138
#  undef _STLP_OUTERMOST_HEADER_ID
williamr@2
   139
# endif
williamr@2
   140
williamr@2
   141
# endif /* ! defined (_STLP_WINCE) */
williamr@2
   142
williamr@2
   143
#endif
williamr@2
   144
williamr@2
   145
// Local Variables:
williamr@2
   146
// mode:C++
williamr@2
   147
// End: