ios_base.h (ios_base::Init::_S_initialized()): Added _S_initialized() in order to allow debugging libraries to detect when...

2003-03-05  Carlo Wood  <carlo@alinoe.com>

        * include/bits/ios_base.h(ios_base::Init::_S_initialized()): Added
	_S_initialized() in order to allow debugging libraries to detect
	when the std streams are initialized from an overloaded operator
	new.

From-SVN: r63852
This commit is contained in:
Carlo Wood 2003-03-05 18:53:18 +00:00 committed by Benjamin Kosnik
parent 83e924e101
commit 0530d3b00b
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2003-03-05 Carlo Wood <carlo@alinoe.com>
* include/bits/ios_base.h(ios_base::Init::_S_initialized()): Added
_S_initialized() in order to allow debugging libraries to detect
when the std streams are initialized from an overloaded operator
new.
2003-03-05 Benjamin Kosnik <bkoz@redhat.com>
* libsupc++/demangle.h: Move to..

View File

@ -458,6 +458,12 @@ namespace std
static void
_S_ios_destroy();
// NB: Allows debugger applications use of the standard streams
// from operator new. _S_ios_base_init must be incremented in
// _S_ios_create _after_ initialization is completed.
static bool
_S_initialized() { return _S_ios_base_init; }
private:
static int _S_ios_base_init;
static bool _S_synced_with_stdio;