This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Two year old patch, can someone approve this please?
- From: Carlo Wood <carlo at alinoe dot com>
- To: libstdc++ at gcc dot gnu dot org
- Date: Fri, 28 Feb 2003 13:41:55 +0100
- Subject: Two year old patch, can someone approve this please?
Two years ago I submitted a patch that was partly
a fix (of what is described in the standard) and
partly a minor extension that is useful for people
who are writing debuggers in C++ (like myself).
The fix (incrementing _S_ios_base_init after initialization
is completed and not before) was applied in the meantime, but
my request for this accessor was ignored. I'd still greatly
appreciate it when this extension would be added.
It should be obvious that this patch doesn't harm
anything; it is merely an accessor for an otherwise
hidden state of libstdc++.
Please don't ignore it again - I've already been waiting
two years now.
Index: libstdc++-v3/include/bits/ios_base.h
===================================================================
RCS file: /cvsroot/gcc/gcc/libstdc++-v3/include/bits/ios_base.h,v
retrieving revision 1.24
diff -u -d -p -r1.24 ios_base.h
--- libstdc++-v3/include/bits/ios_base.h 18 Feb 2003 05:45:06 -0000 1.24
+++ libstdc++-v3/include/bits/ios_base.h 28 Feb 2003 11:44:02 -0000
@@ -458,6 +458,13 @@ namespace std
static void
_S_ios_destroy();
+ // _S_initialized() is an extension to allow debugger applications
+ // to use 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;
--
Carlo Wood <carlo at alinoe dot com>