diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-08-07 06:02:05 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-08-07 06:02:05 +0000 |
commit | 10c499f8f88cf74c1516dae4da22201f3f342165 (patch) | |
tree | 5df4b9dddad86b6545449ec8cde791905904c826 /libio/isgetsb.cc | |
parent | ce531cb7ec3516f1ec29a27b789224cdde701878 (diff) | |
download | gcc-10c499f8f88cf74c1516dae4da22201f3f342165.tar.gz |
* iostream.cc: Add missing calls to isfx and setup a cleanup
region for the locked stream.
* iostream.h: Likewise.
* isgetline.cc: Likewise.
* isgetsb.cc: Likewise.
* isscan.cc: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28573 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libio/isgetsb.cc')
-rw-r--r-- | libio/isgetsb.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libio/isgetsb.cc b/libio/isgetsb.cc index 55617e649a0..655c972589a 100644 --- a/libio/isgetsb.cc +++ b/libio/isgetsb.cc @@ -31,6 +31,8 @@ istream& istream::get(streambuf& sb, char delim /* = '\n' */) _gcount = 0; if (ipfx1()) { + _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, + _strbuf); register streambuf* isb = rdbuf(); for (;;) { @@ -54,6 +56,8 @@ istream& istream::get(streambuf& sb, char delim /* = '\n' */) if (delimp != NULL) break; } + isfx(); + _IO_cleanup_region_end (0); } return *this; } |