mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-30 22:20:32 +08:00
5066927d9e
PR libstdc++/4150 * include/std/std_streambuf.h (basic_streambuf::_M_set_indeterminate): Move to filebuf. (basic_streambuf::_M_set_determinate): Likewise. (basic_streambuf::_M_is_indeterminate): Likewise. * include/bits/std_fstream.h (basic_filebuf::_M_filepos): New non-static data member. (basic_filebuf::_M_underflow_common): New non-static member function. (basic_filebuf::_M_underflow, _M_uflow): Call it. (basic_filebuf::sync): Avoid useless seeking. (basic_filebuf::_M_set_indeterminate): Move here from streambuf. Set _M_filepos. (basic_filebuf::_M_set_determinate): Likewise. (basic_filebuf::_M_is_indeterminate): Likewise. * include/bits/fstream.tcc (basic_filebuf::_M_really_overflow): Seek back to _M_out_beg if necessary. (basic_filebuf::seekoff): Likewise. (basic_filebuf::_M_underflow_common): Generalization of old underflow(). Don't seek back to _M_in_beg. * src/ios.cc: Lose _GLIBCPP_AVOID_FSEEK stuff. * config/os/solaris/solaris2.?/bits/os_defines.h: Likewise. * config/os/bsd/freebsd/bits/os_defines.h: Likewise. * config/os/mingw32/bits/os_defines.h: Likewise. * testsuite/27_io/filebuf_virtuals.cc (test05): Don't overspecify ungetc test. From-SVN: r52634 |
||
---|---|---|
.. | ||
filebuf_members-1.tst | ||
filebuf_members-1.txt | ||
filebuf_members.cc | ||
filebuf_virtuals-1.tst | ||
filebuf_virtuals-1.txt | ||
filebuf_virtuals-2.tst | ||
filebuf_virtuals-3.tst | ||
filebuf_virtuals.cc | ||
filebuf.cc | ||
fpos.cc | ||
fstream_members.cc | ||
ifstream_members-1.tst | ||
ifstream_members-1.txt | ||
ifstream_members.cc | ||
instantiations.cc | ||
ios_base_callbacks.cc | ||
ios_base_members_static-1.tst | ||
ios_base_members_static.cc | ||
ios_base_storage.cc | ||
ios_ctor.cc | ||
ios_init.cc | ||
ios_manip_basefield.cc | ||
ios_manip_fmtflags.cc | ||
ios_members.cc | ||
iostream_members.cc | ||
iostream.cc | ||
istream_extractor_arith.cc | ||
istream_extractor_char.cc | ||
istream_extractor_other-1.tst | ||
istream_extractor_other-1.txt | ||
istream_extractor_other-2.tst | ||
istream_extractor_other.cc | ||
istream_manip.cc | ||
istream_seeks-1.tst | ||
istream_seeks-1.txt | ||
istream_seeks-2.tst | ||
istream_seeks-3.tst | ||
istream_seeks.cc | ||
istream_sentry.cc | ||
istream_unformatted-1.tst | ||
istream_unformatted-1.txt | ||
istream_unformatted.cc | ||
istream.cc | ||
istringstream_members.cc | ||
narrow_stream_objects.cc | ||
ofstream_members-1.tst | ||
ofstream_members.cc | ||
ostream_inserter_arith.cc | ||
ostream_inserter_char-1.tst | ||
ostream_inserter_char-1.txt | ||
ostream_inserter_char.cc | ||
ostream_inserter_other-1.tst | ||
ostream_inserter_other-2.tst | ||
ostream_inserter_other.cc | ||
ostream_manip.cc | ||
ostream_seeks-1.tst | ||
ostream_seeks.cc | ||
ostream_unformatted.cc | ||
ostream.cc | ||
ostringstream_members.cc | ||
standard_manipulators.cc | ||
streambuf.cc | ||
stringbuf_virtuals.cc | ||
stringbuf.cc | ||
stringstream_members.cc | ||
stringstream.cc | ||
wide_stream_objects.cc |