diff options
author | Ulrich Drepper <drepper@cygnus.com> | 1997-09-16 10:01:55 -0600 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1997-09-16 10:01:55 -0600 |
commit | e693cc28bbfeb1c1728bec4392505d2eba2b1090 (patch) | |
tree | 6f133200943f818cad1e94da16393eadfe8dd250 /libio/osform.cc | |
parent | 610ce97e654a9f2ed5e103bddd936988c5768538 (diff) | |
download | gcc-e693cc28bbfeb1c1728bec4392505d2eba2b1090.zip gcc-e693cc28bbfeb1c1728bec4392505d2eba2b1090.tar.gz gcc-e693cc28bbfeb1c1728bec4392505d2eba2b1090.tar.bz2 |
Uli's libio/libstdc++ patches.
From-SVN: r15486
Diffstat (limited to 'libio/osform.cc')
-rw-r--r-- | libio/osform.cc | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/libio/osform.cc b/libio/osform.cc index 8c00117..f08f2ef 100644 --- a/libio/osform.cc +++ b/libio/osform.cc @@ -29,26 +29,38 @@ the executable file might be covered by the GNU General Public License. */ ostream& ostream::form(const char *format ...) { if (opfx()) { + _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, + _strbuf); va_list ap; va_start(ap, format); _IO_vfprintf(rdbuf(), format, ap); va_end(ap); + osfx(); + _IO_cleanup_region_end (0); } return *this; } ostream& ostream::vform(const char *format, _IO_va_list args) { - if (opfx()) + if (opfx()) { + _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, + _strbuf); _IO_vfprintf(rdbuf(), format, args); + osfx(); + _IO_cleanup_region_end (0); + } return *this; } ostream& ostream::operator<<(const void *p) { if (opfx()) { + _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, + _strbuf); form("%p", p); osfx(); + _IO_cleanup_region_end (0); } return *this; } |