diff options
| author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-31 18:24:13 +0000 |
|---|---|---|
| committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-31 18:24:13 +0000 |
| commit | 3d2acfc2fe7aac846b5f4c55070c7416e0f6e75e (patch) | |
| tree | 73484defd3a0008256a22e753fae73b6b37914c4 /libstdc++-v3/include/std/std_fstream.h | |
| parent | 0e3a99609e911cdcdbcc80c5be28ecb05062d73b (diff) | |
| download | ppe42-gcc-3d2acfc2fe7aac846b5f4c55070c7416e0f6e75e.tar.gz ppe42-gcc-3d2acfc2fe7aac846b5f4c55070c7416e0f6e75e.zip | |
2003-03-31 Paolo Carlini <pcarlini@unitus.it>
* include/std/std_streambuf.h (_M_out_buf_size()): Remove.
* include/bits/fstream.tcc (_M_allocate_internal_buffer):
Don't set _M_out_end.
(basic_filebuf::overflow): Replace _M_out_buf_size() with
this->_M_out_cur && this->_M_out_cur < this->_M_out_end.
* include/bits/sstream.tcc (basic_stringbuf::overflow):
Replace _M_out_buf_size() with this->_M_out_cur < this->_M_out_end;
* include/bits/streambuf.tcc (basic_streambuf::sputc):
Replace _M_out_buf_size() with _M_out_cur && _M_out_cur < _M_out_end.
(basic_streambuf::xsputn): Replace _M_out_buf_size() with
_M_out_end - _M_out_cur.
(__copy_streambufs): Likewise.
* include/std/std_fstream.h (_M_set_determinate): Set
_M_out_end here.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65093 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/std/std_fstream.h')
| -rw-r--r-- | libstdc++-v3/include/std/std_fstream.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libstdc++-v3/include/std/std_fstream.h b/libstdc++-v3/include/std/std_fstream.h index ecbaba4c510..c5e34808d16 100644 --- a/libstdc++-v3/include/std/std_fstream.h +++ b/libstdc++-v3/include/std/std_fstream.h @@ -409,13 +409,10 @@ namespace std bool __testin = this->_M_mode & ios_base::in; bool __testout = this->_M_mode & ios_base::out; if (__testin) - { - this->_M_in_beg = this->_M_in_cur = this->_M_buf; - this->_M_in_end = this->_M_buf + __off; - } + this->setg(this->_M_buf, this->_M_buf, this->_M_buf + __off); if (__testout) { - this->_M_out_beg = this->_M_out_cur = this->_M_buf; + this->setp(this->_M_buf, this->_M_buf + this->_M_buf_size); this->_M_out_lim = this->_M_buf + __off; } _M_filepos = this->_M_buf + __off; |

