diff options
author | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-05 18:53:18 +0000 |
---|---|---|
committer | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-05 18:53:18 +0000 |
commit | cc9cb468164b5fdaf92196052439b534a42d4c7e (patch) | |
tree | 780c98f905e434deab14ae96e289e3b4c81980bd /libstdc++-v3 | |
parent | eba53c31cfa90cba1b93774ae0128536169ca798 (diff) | |
download | ppe42-gcc-cc9cb468164b5fdaf92196052439b534a42d4c7e.tar.gz ppe42-gcc-cc9cb468164b5fdaf92196052439b534a42d4c7e.zip |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63852 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 7 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/ios_base.h | 6 |
2 files changed, 13 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 9aa67cfb5f4..bfaa812ba50 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -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.. diff --git a/libstdc++-v3/include/bits/ios_base.h b/libstdc++-v3/include/bits/ios_base.h index 26ee38df383..0adea499836 100644 --- a/libstdc++-v3/include/bits/ios_base.h +++ b/libstdc++-v3/include/bits/ios_base.h @@ -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; |