Add .gitattributes and .gitignore files and normalize line endings in the repository...
[reactos.git] / sdk / include / c++ / stlport / iostream
index 100c1c0..1241f10 100644 (file)
-/*\r
- * Copyright (c) 1999\r
- * Silicon Graphics Computer Systems, Inc.\r
- *\r
- * Copyright (c) 1999\r
- * Boris Fomitchev\r
- *\r
- * This material is provided "as is", with absolutely no warranty expressed\r
- * or implied. Any use is at your own risk.\r
- *\r
- * Permission to use or copy this software for any purpose is hereby granted\r
- * without fee, provided the above notices are retained on all copies.\r
- * Permission to modify the code and to distribute modified code is granted,\r
- * provided the above notices are retained, and a notice that the code was\r
- * modified is included with the above copyright notice.\r
- *\r
- */\r
-\r
-#ifndef _STLP_IOSTREAM\r
-\r
-#ifndef _STLP_OUTERMOST_HEADER_ID\r
-#  define _STLP_OUTERMOST_HEADER_ID 0x1037\r
-#  include <stl/_prolog.h>\r
-#  define _STLP_IOSTREAM\r
-#endif\r
-\r
-#if (_STLP_OUTERMOST_HEADER_ID == 0x1037) && \\r
-   !(defined (_STLP_NO_IOSTREAMS) && defined (_STLP_IMPORT_VENDOR_STD))\r
-#  include <stl/_ioserr.h>\r
-\r
-#  ifdef _STLP_REDIRECT_STDSTREAMS\r
-// for ofstream redirection\r
-#    ifndef _STLP_INTERNAL_FSTREAM_H\r
-#      include <stl/_fstream.h>\r
-#    endif\r
-#  endif\r
-\r
-#  ifndef _STLP_INTERNAL_IOSFWD\r
-#    include <stl/_iosfwd.h>\r
-#  endif\r
-\r
-#  ifndef _STLP_INTERNAL_ISTREAM\r
-#    include <stl/_istream.h>\r
-#  endif\r
-\r
-_STLP_BEGIN_NAMESPACE\r
-\r
-#  ifndef _STLP_USE_NAMESPACES\r
-// in case of SGI iostreams, we have to rename our streams not to clash with those\r
-// provided in native lib\r
-#    define cin _STLP_cin\r
-#    define cout _STLP_cout\r
-#    define cerr _STLP_cerr\r
-#    define clog _STLP_clog\r
-#  endif\r
-\r
-// Note: cin and wcin are both associated with stdio.  The C standard\r
-// (Amendment 1, section 4.6.2.1) says that it is an error to mix\r
-// wide- and narrow-oriented I/O on the same stream.  This implies\r
-// that it is an error to use both cin and wcin in the same C++\r
-// program; the same applies to cout and wcout, and cerr/clog and\r
-// wcerr/wclog.\r
-\r
-extern _STLP_DECLSPEC istream cin;\r
-\r
-#  ifdef _STLP_REDIRECT_STDSTREAMS\r
-extern _STLP_DECLSPEC ofstream cout;\r
-extern _STLP_DECLSPEC ofstream cerr;\r
-extern _STLP_DECLSPEC ofstream clog;\r
-#  else\r
-extern _STLP_DECLSPEC ostream cout;\r
-extern _STLP_DECLSPEC ostream cerr;\r
-extern _STLP_DECLSPEC ostream clog;\r
-#  endif\r
-\r
-#  ifndef _STLP_NO_WCHAR_T\r
-extern _STLP_DECLSPEC wistream wcin;\r
-extern _STLP_DECLSPEC wostream wcout;\r
-extern _STLP_DECLSPEC wostream wcerr;\r
-extern _STLP_DECLSPEC wostream wclog;\r
-#  endif\r
-\r
-_STLP_END_NAMESPACE\r
-\r
-#endif\r
-\r
-#if (_STLP_OUTERMOST_HEADER_ID != 0x1037) || defined (_STLP_IMPORT_VENDOR_STD)\r
-#  if defined (_STLP_HAS_INCLUDE_NEXT)\r
-#    include_next <iostream>\r
-#  else\r
-#    include _STLP_NATIVE_HEADER(iostream)\r
-#  endif\r
-#endif\r
-\r
-#if (_STLP_OUTERMOST_HEADER_ID == 0x1037)\r
-#  include <stl/_epilog.h>\r
-#  undef _STLP_OUTERMOST_HEADER_ID\r
-#endif\r
-\r
-#endif /* _STLP_IOSTREAM */\r
-\r
-// Local Variables:\r
-// mode:C++\r
-// End:\r
+/*
+ * 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
+
+#ifndef _STLP_OUTERMOST_HEADER_ID
+#  define _STLP_OUTERMOST_HEADER_ID 0x1037
+#  include <stl/_prolog.h>
+#  define _STLP_IOSTREAM
+#endif
+
+#if (_STLP_OUTERMOST_HEADER_ID == 0x1037) && \
+   !(defined (_STLP_NO_IOSTREAMS) && defined (_STLP_IMPORT_VENDOR_STD))
+#  include <stl/_ioserr.h>
+
+#  ifdef _STLP_REDIRECT_STDSTREAMS
+// for ofstream redirection
+#    ifndef _STLP_INTERNAL_FSTREAM_H
+#      include <stl/_fstream.h>
+#    endif
+#  endif
+
+#  ifndef _STLP_INTERNAL_IOSFWD
+#    include <stl/_iosfwd.h>
+#  endif
+
+#  ifndef _STLP_INTERNAL_ISTREAM
+#    include <stl/_istream.h>
+#  endif
+
+_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.
+
+extern _STLP_DECLSPEC istream cin;
+
+#  ifdef _STLP_REDIRECT_STDSTREAMS
+extern _STLP_DECLSPEC ofstream cout;
+extern _STLP_DECLSPEC ofstream cerr;
+extern _STLP_DECLSPEC ofstream clog;
+#  else
+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
+
+#endif
+
+#if (_STLP_OUTERMOST_HEADER_ID != 0x1037) || defined (_STLP_IMPORT_VENDOR_STD)
+#  if defined (_STLP_HAS_INCLUDE_NEXT)
+#    include_next <iostream>
+#  else
+#    include _STLP_NATIVE_HEADER(iostream)
+#  endif
+#endif
+
+#if (_STLP_OUTERMOST_HEADER_ID == 0x1037)
+#  include <stl/_epilog.h>
+#  undef _STLP_OUTERMOST_HEADER_ID
+#endif
+
+#endif /* _STLP_IOSTREAM */
+
+// Local Variables:
+// mode:C++
+// End: