mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-21 15:19:46 +08:00
f10eea7bae
2003-06-09 Paolo Carlini <pcarlini@unitus.it> * include/bits/fstream.tcc (_M_underflow): Do not special case the unbuffered case, which really means simply a one char get area. (basic_filebuf): Initialize _M_buf_size. (setbuf): Unbuffered means _M_buf_size == 1, since only _M_buf_size - 1 == 0 chars are going to be used for the put area and 1 for the get area. * include/std/std_streambuf.h (_M_buf_size): Move to basic_filebuf. (~basic_streambuf): Tweak. (basic_streambuf): Do not initialize _M_buf_size. * include/std/std_fstream.h (_M_buf_size): Add from basic_streambuf. (~basic_filebuf): Tweak. (_M_set_buffer): Tweak, considering that _M_buf_size == 1 is the unbuffered situation (i.e., put area pointers NULL). * include/bits/streambuf.tcc (sbumpc): Clean up. * testsuite/27_io/basic_filebuf/sputbackc/char/1.cc: Split into... * testsuite/27_io/basic_filebuf/sputbackc/char/1-in.cc: New. * testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: New. * testsuite/27_io/basic_filebuf/sputbackc/char/1-out.cc: New. * testsuite/27_io/basic_filebuf/sputbackc/char/2-in.cc: New. * testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: New. * testsuite/27_io/basic_filebuf/sputbackc/char/2-out.cc: New. From-SVN: r67686 |
||
---|---|---|
.. | ||
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 |