X-Git-Url: http://git.buserror.net/cgi-bin/gitweb.cgi?p=polintos%2Fscott%2Fpriv.git;a=blobdiff_plain;f=include%2Fc%2B%2B%2Fstl%2Fiostream;fp=include%2Fc%2B%2B%2Fstl%2Fiostream;h=05289e48f7cad473b8898c97c5366d3fa6705683;hp=0000000000000000000000000000000000000000;hb=173d8903eb9d51a4ea7d7fa3e52dc86c9bb6d4f1;hpb=b024710fe2b60cd4a42a8993b61333d6cdb56ca3 diff --git a/include/c++/stl/iostream b/include/c++/stl/iostream new file mode 100644 index 0000000..05289e4 --- /dev/null +++ b/include/c++/stl/iostream @@ -0,0 +1,92 @@ +/* + * Copyright (c) 1999 + * Silicon Graphics Computer Systems, Inc. + * + * 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_IOSTREAM +#define _STLP_IOSTREAM + +# ifndef _STLP_OUTERMOST_HEADER_ID +# define _STLP_OUTERMOST_HEADER_ID 0x1037 +# include +# endif + +# ifdef _STLP_PRAGMA_ONCE +# pragma once +# endif + +#include + +#ifdef _STLP_REDIRECT_STDSTREAMS +// for ofstream redirection +# include +#endif + +#include +#include + +_STLP_BEGIN_NAMESPACE + +#ifndef _STLP_USE_NAMESPACES +// in case of SGI iostreams, we have to rename our streams not to clash with those +// provided in native lib +# define cin _STLP_cin +# define cout _STLP_cout +# define cerr _STLP_cerr +# define clog _STLP_clog +#endif + +// Note: cin and wcin are both associated with stdio. The C standard +// (Amendment 1, section 4.6.2.1) says that it is an error to mix +// wide- and narrow-oriented I/O on the same stream. This implies +// that it is an error to use both cin and wcin in the same C++ +// program; the same applies to cout and wcout, and cerr/clog and +// wcerr/wclog. + +# ifdef _STLP_REDIRECT_STDSTREAMS +extern _STLP_DECLSPEC istream cin; +extern _STLP_DECLSPEC ofstream cout; +extern _STLP_DECLSPEC ofstream cerr; +extern _STLP_DECLSPEC ofstream clog; +# else +extern _STLP_DECLSPEC istream cin; +extern _STLP_DECLSPEC ostream cout; +extern _STLP_DECLSPEC ostream cerr; +extern _STLP_DECLSPEC ostream clog; +# endif + +# ifndef _STLP_NO_WCHAR_T +extern _STLP_DECLSPEC wistream wcin; +extern _STLP_DECLSPEC wostream wcout; +extern _STLP_DECLSPEC wostream wcerr; +extern _STLP_DECLSPEC wostream wclog; +# endif + +_STLP_END_NAMESPACE + +//# elif defined ( _STLP_USE_NO_IOSTREAMS ) +//# include + +# if (_STLP_OUTERMOST_HEADER_ID == 0x1037) +# include +# undef _STLP_OUTERMOST_HEADER_ID +# endif + +#endif /* _STLP_IOSTREAM */ + +// Local Variables: +// mode:C++ +// End: