iostream.mh
来自「开放源码的编译器open watcom 1.6.0版的源代码」· MH 代码 · 共 89 行
MH
89 行
///////////////////////////////////////////////////////////////////////////
// FILE: iostream/iostream.h (iostreams "top level" file)
//
:keep CPP_HDR
:include crwat.sp
//
// Description: This header is part of the C++ standard library. It
// declares the global stream objects and includes other
// iostream headers as necessary.
///////////////////////////////////////////////////////////////////////////
:segment !CNAME
#ifndef _IOSTREAM_H_INCLUDED
#define _IOSTREAM_H_INCLUDED
:include readonly.sp
#ifndef _IOSTREAM_INCLUDED
#include <iostream>
#endif
using std::cin;
using std::cout;
using std::cerr;
using std::clog;
// All included names should also be in the global namespace.
#ifndef _IOS_H_INCLUDED
#include <ios.h>
#endif
#ifndef _STREAMBUF_H_INCLUDED
#include <streambu.h>
#endif
#ifndef _ISTREAM_H_INCLUDED
#include <istream.h>
#endif
#ifndef _OSTREAM_H_INCLUDED
#include <ostream.h>
#endif
#endif
:elsesegment
#ifndef _IOSTREAM_INCLUDED
#define _IOSTREAM_INCLUDED
:include readonly.sp
#ifndef __cplusplus
#error The header iostream requires C++
#endif
#ifndef _COMDEF_H_INCLUDED
#include <_comdef.h>
#endif
enum {
DEFAULT_PUTBACK_SIZE = 4,
DEFAULT_MAINBUF_SIZE = 512,
DEFAULT_BUF_SIZE = DEFAULT_MAINBUF_SIZE + DEFAULT_PUTBACK_SIZE
};
#ifndef _IOS_INCLUDED
#include <ios>
#endif
#ifndef _STREAMBUF_INCLUDED
#include <streambu>
#endif
#ifndef _ISTREAM_INCLUDED
#include <istream>
#endif
#ifndef _OSTREAM_INCLUDED
#include <ostream>
#endif
// **************************** PREDEFINED STREAMS ***************************
namespace std {
_WPRTLINK extern istream _WCDATA cin;
_WPRTLINK extern ostream _WCDATA cout;
_WPRTLINK extern ostream _WCDATA cerr;
_WPRTLINK extern ostream _WCDATA clog;
}
#endif
:endsegment
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?