Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

33 lines
705 B

// iostream -- ios::Init members, dummy for MS
#include <iostream>
_STD_BEGIN
// OBJECT DECLARATIONS
int ios_base::Init::_Init_cnt = -1;
_CRTIMP2 ios_base::Init::Init()
{ // initialize standard streams first time
if (0 <= _Init_cnt)
++_Init_cnt;
else
_Init_cnt = 1;
}
_CRTIMP2 ios_base::Init::~Init()
{ // flush standard streams last time
if (--_Init_cnt == 0)
{ // flush standard streams
if (_Ptr_cerr != 0)
_Ptr_cerr->flush();
if (_Ptr_clog != 0)
_Ptr_clog->flush();
if (_Ptr_cout != 0)
_Ptr_cout->flush();
}
}
_STD_END
/*
* Copyright (c) 1992-2001 by P.J. Plauger. ALL RIGHTS RESERVED.
* Consult your license regarding permissions and restrictions.
V3.10:0009 */