epoc32/include/tools/stlport/stl/_cstdio.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
williamr@4
     1
/*
williamr@4
     2
 * Copyright (c) 1999
williamr@4
     3
 * Boris Fomitchev
williamr@4
     4
 *
williamr@4
     5
 * This material is provided "as is", with absolutely no warranty expressed
williamr@4
     6
 * or implied. Any use is at your own risk.
williamr@4
     7
 *
williamr@4
     8
 * Permission to use or copy this software for any purpose is hereby granted
williamr@4
     9
 * without fee, provided the above notices are retained on all copies.
williamr@4
    10
 * Permission to modify the code and to distribute modified code is granted,
williamr@4
    11
 * provided the above notices are retained, and a notice that the code was
williamr@4
    12
 * modified is included with the above copyright notice.
williamr@4
    13
 *
williamr@4
    14
 */
williamr@4
    15
williamr@4
    16
#ifndef _STLP_INTERNAL_CSTDIO
williamr@4
    17
#define _STLP_INTERNAL_CSTDIO
williamr@4
    18
williamr@4
    19
#if defined (__Lynx__)
williamr@4
    20
#  include _STLP_NATIVE_C_HEADER(stdarg.h)
williamr@4
    21
#endif
williamr@4
    22
williamr@4
    23
#if defined (_STLP_USE_NEW_C_HEADERS)
williamr@4
    24
#  include _STLP_NATIVE_CPP_C_HEADER(cstdio)
williamr@4
    25
#else
williamr@4
    26
#  include _STLP_NATIVE_C_HEADER(stdio.h)
williamr@4
    27
#endif
williamr@4
    28
williamr@4
    29
#if (defined (__MWERKS__) && !defined (N_PLAT_NLM))  || defined (__BORLANDC__)
williamr@4
    30
#  undef stdin
williamr@4
    31
#  undef stdout
williamr@4
    32
#  undef stderr
williamr@4
    33
#  if defined (__MWERKS__)
williamr@4
    34
#  define stdin   (&_STLP_VENDOR_CSTD::__files[0])
williamr@4
    35
#  define stdout  (&_STLP_VENDOR_CSTD::__files[1])
williamr@4
    36
#  define stderr  (&_STLP_VENDOR_CSTD::__files[2])
williamr@4
    37
#  elif defined (__BORLANDC__)
williamr@4
    38
#    define stdin   (&_STLP_VENDOR_CSTD::_streams[0])
williamr@4
    39
#    define stdout  (&_STLP_VENDOR_CSTD::_streams[1])
williamr@4
    40
#    define stderr  (&_STLP_VENDOR_CSTD::_streams[2])
williamr@4
    41
#  endif
williamr@4
    42
#endif
williamr@4
    43
williamr@4
    44
#if defined (_STLP_MSVC_LIB) && (_STLP_MSVC_LIB < 1400) || defined (_STLP_USING_PLATFORM_SDK_COMPILER)
williamr@4
    45
inline int vsnprintf(char *s1, size_t n, const char *s2, va_list v)
williamr@4
    46
{ return _STLP_VENDOR_CSTD::_vsnprintf(s1, n, s2, v); }
williamr@4
    47
#endif
williamr@4
    48
williamr@4
    49
#if defined (_STLP_IMPORT_VENDOR_CSTD )
williamr@4
    50
_STLP_BEGIN_NAMESPACE
williamr@4
    51
using _STLP_VENDOR_CSTD::FILE;
williamr@4
    52
using _STLP_VENDOR_CSTD::fpos_t;
williamr@4
    53
using _STLP_VENDOR_CSTD::size_t;
williamr@4
    54
williamr@4
    55
// undef obsolete macros
williamr@4
    56
#  undef putc
williamr@4
    57
#  undef getc
williamr@4
    58
#  undef getchar
williamr@4
    59
#  undef putchar
williamr@4
    60
#  undef feof
williamr@4
    61
#  undef ferror
williamr@4
    62
williamr@4
    63
#  if !defined (_STLP_NO_CSTD_FUNCTION_IMPORTS)
williamr@4
    64
using _STLP_VENDOR_CSTD::clearerr;
williamr@4
    65
using _STLP_VENDOR_CSTD::fclose;
williamr@4
    66
using _STLP_VENDOR_CSTD::feof;
williamr@4
    67
using _STLP_VENDOR_CSTD::ferror;
williamr@4
    68
using _STLP_VENDOR_CSTD::fflush;
williamr@4
    69
using _STLP_VENDOR_CSTD::fgetc;
williamr@4
    70
using _STLP_VENDOR_CSTD::fgetpos;
williamr@4
    71
using _STLP_VENDOR_CSTD::fgets;
williamr@4
    72
using _STLP_VENDOR_CSTD::fopen;
williamr@4
    73
using _STLP_VENDOR_CSTD::fprintf;
williamr@4
    74
using _STLP_VENDOR_CSTD::fputc;
williamr@4
    75
using _STLP_VENDOR_CSTD::fputs;
williamr@4
    76
using _STLP_VENDOR_CSTD::fread;
williamr@4
    77
#    if _WIN32_WCE < 0x500 // CE5 stopped supplying this
williamr@4
    78
using _STLP_VENDOR_CSTD::freopen;
williamr@4
    79
#    endif
williamr@4
    80
using _STLP_VENDOR_CSTD::fscanf;
williamr@4
    81
using _STLP_VENDOR_CSTD::fseek;
williamr@4
    82
using _STLP_VENDOR_CSTD::fsetpos;
williamr@4
    83
using _STLP_VENDOR_CSTD::ftell;
williamr@4
    84
using _STLP_VENDOR_CSTD::fwrite;
williamr@4
    85
williamr@4
    86
#    if  !(defined (__IBMCPP__) && (__IBMCPP__ >= 500))
williamr@4
    87
#      if _WIN32_WCE < 0x500 // CE5 stopped supplying this except as macros. TODO: use inline function to redirect to the macros?
williamr@4
    88
 using _STLP_VENDOR_CSTD::getc;
williamr@4
    89
 using _STLP_VENDOR_CSTD::putc;
williamr@4
    90
#      endif
williamr@4
    91
 using _STLP_VENDOR_CSTD::getchar;
williamr@4
    92
 using _STLP_VENDOR_CSTD::putchar;
williamr@4
    93
#    endif
williamr@4
    94
williamr@4
    95
using _STLP_VENDOR_CSTD::gets;
williamr@4
    96
#    if _WIN32_WCE < 0x500 // CE5 stopped supplying this
williamr@4
    97
using _STLP_VENDOR_CSTD::perror;
williamr@4
    98
#    endif
williamr@4
    99
using _STLP_VENDOR_CSTD::printf;
williamr@4
   100
using _STLP_VENDOR_CSTD::puts;
williamr@4
   101
#    if _WIN32_WCE < 0x500 // CE5 stopped supplying this
williamr@4
   102
using _STLP_VENDOR_CSTD::remove;
williamr@4
   103
using _STLP_VENDOR_CSTD::rename;
williamr@4
   104
using _STLP_VENDOR_CSTD::rewind;
williamr@4
   105
using _STLP_VENDOR_CSTD::setbuf;
williamr@4
   106
using _STLP_VENDOR_CSTD::tmpfile;
williamr@4
   107
using _STLP_VENDOR_CSTD::tmpnam;
williamr@4
   108
#    endif
williamr@4
   109
using _STLP_VENDOR_CSTD::scanf;
williamr@4
   110
using _STLP_VENDOR_CSTD::setvbuf;
williamr@4
   111
using _STLP_VENDOR_CSTD::sprintf;
williamr@4
   112
using _STLP_VENDOR_CSTD::sscanf;
williamr@4
   113
using _STLP_VENDOR_CSTD::ungetc;
williamr@4
   114
using _STLP_VENDOR_CSTD::vfprintf;
williamr@4
   115
using _STLP_VENDOR_CSTD::vprintf;
williamr@4
   116
using _STLP_VENDOR_CSTD::vsprintf;
williamr@4
   117
#    if ((defined (__MWERKS__) && !defined (N_PLAT_NLM)) || (defined (_STLP_MSVC_LIB) && (_STLP_MSVC_LIB < 1400)) || \
williamr@4
   118
        (defined (__BORLANDC__)))
williamr@4
   119
using _STLP_VENDOR_CSTD::vsnprintf;
williamr@4
   120
#    endif
williamr@4
   121
#  endif /* _STLP_NO_CSTD_FUNCTION_IMPORTS */
williamr@4
   122
_STLP_END_NAMESPACE
williamr@4
   123
#endif /* _STLP_IMPORT_VENDOR_CSTD */
williamr@4
   124
williamr@4
   125
#endif /* _STLP_INTERNAL_CSTDIO */