mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-22 22:00:01 +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 |
||
---|---|---|
.. | ||
std_algorithm.h | ||
std_bitset.h | ||
std_complex.h | ||
std_deque.h | ||
std_fstream.h | ||
std_functional.h | ||
std_iomanip.h | ||
std_ios.h | ||
std_iosfwd.h | ||
std_iostream.h | ||
std_istream.h | ||
std_iterator.h | ||
std_limits.h | ||
std_list.h | ||
std_locale.h | ||
std_map.h | ||
std_memory.h | ||
std_numeric.h | ||
std_ostream.h | ||
std_queue.h | ||
std_set.h | ||
std_sstream.h | ||
std_stack.h | ||
std_stdexcept.h | ||
std_streambuf.h | ||
std_string.h | ||
std_utility.h | ||
std_valarray.h | ||
std_vector.h |