diff options
| author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-10-18 16:52:12 +0000 |
|---|---|---|
| committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-10-18 16:52:12 +0000 |
| commit | 327b2972f08aae718babb6c5cd2f8125f2d8f2f3 (patch) | |
| tree | 2bee594f11dfe8380034cda27bae78086805969c | |
| parent | aad186d3b355ee14ce4d591c0c22cd6e7316af5b (diff) | |
| download | ppe42-gcc-327b2972f08aae718babb6c5cd2f8125f2d8f2f3.tar.gz ppe42-gcc-327b2972f08aae718babb6c5cd2f8125f2d8f2f3.zip | |
* iostream.cc (ends): Release the acquired lock.
(endl): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36937 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | libio/ChangeLog | 5 | ||||
| -rw-r--r-- | libio/iostream.cc | 14 |
2 files changed, 17 insertions, 2 deletions
diff --git a/libio/ChangeLog b/libio/ChangeLog index 55f6ec83736..5c9836ee7b0 100644 --- a/libio/ChangeLog +++ b/libio/ChangeLog @@ -1,3 +1,8 @@ +2000-10-18 Jakub Jelinek <jakub@redhat.com> + + * iostream.cc (ends): Release the acquired lock. + (endl): Likewise. + 2000-10-16 Jakub Jelinek <jakub@redhat.com> * iostream.cc (ostream::operator<<(double n)) [__GLIBC_MINOR__ >= 2]: diff --git a/libio/iostream.cc b/libio/iostream.cc index 1f294313c37..ae1db1afd9c 100644 --- a/libio/iostream.cc +++ b/libio/iostream.cc @@ -965,15 +965,25 @@ int istream::_skip_ws() ostream& ends(ostream& outs) { - if (outs.opfx()) + if (outs.opfx()) { + _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, + outs._strbuf); outs.put('\0'); + outs.osfx(); + _IO_cleanup_region_end (0); + } return outs; } ostream& endl(ostream& outs) { - if (outs.opfx()) + if (outs.opfx()) { + _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, + outs._strbuf); flush(outs.put('\n')); + outs.osfx(); + _IO_cleanup_region_end (0); + } return outs; } |

