mirror of
https://github.com/ENSL/NS.git
synced 2025-03-03 07:51:41 +00:00
git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@277 67975925-1194-0748-b3d5-c16f83f1a3a1
134 lines
3.6 KiB
Text
134 lines
3.6 KiB
Text
/*
|
|
* 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
|
|
|
|
#ifdef __Lynx__
|
|
# include _STLP_NATIVE_C_HEADER(stdarg.h)
|
|
#endif
|
|
|
|
# if defined (_STLP_USE_NEW_C_HEADERS)
|
|
# include _STLP_NATIVE_CPP_C_HEADER(cstdio)
|
|
# else
|
|
# include _STLP_NATIVE_C_HEADER(stdio.h)
|
|
# endif
|
|
|
|
# ifdef __MWERKS__
|
|
# 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)
|
|
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
|
|
|
|
# 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:
|