gcc/libstdc++-v3/testsuite/27_io
Paolo Carlini f10eea7bae fstream.tcc (_M_underflow): Do not special case the unbuffered case...
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
2003-06-10 00:05:49 +00:00
..
basic_filebuf fstream.tcc (_M_underflow): Do not special case the unbuffered case... 2003-06-10 00:05:49 +00:00
basic_fstream std_fstream.h (_S_pback_size): Remove definition. 2003-05-22 22:16:41 +00:00
basic_ifstream std_fstream.h (_S_pback_size): Remove definition. 2003-05-22 22:16:41 +00:00
basic_ios 3.cc: _S_pback_size now belongs to basic_filebuf. 2003-04-23 22:34:51 +00:00
basic_iostream 3.cc: _S_pback_size now belongs to basic_filebuf. 2003-04-23 22:34:51 +00:00
basic_istream re PR libstdc++/11095 (C++ iostream manipulator causes segfault when called iwth negative argument) 2003-06-05 23:25:05 +00:00
basic_istringstream 3.cc: _S_pback_size now belongs to basic_filebuf. 2003-04-23 22:34:51 +00:00
basic_ofstream std_fstream.h (_S_pback_size): Remove definition. 2003-05-22 22:16:41 +00:00
basic_ostream re PR libstdc++/11095 (C++ iostream manipulator causes segfault when called iwth negative argument) 2003-06-05 23:25:05 +00:00
basic_ostringstream 3.cc: _S_pback_size now belongs to basic_filebuf. 2003-04-23 22:34:51 +00:00
basic_streambuf std_fstream.h (_S_pback_size): Remove definition. 2003-05-22 22:16:41 +00:00
basic_stringbuf 3.cc: Tweak line spacing. 2003-06-02 15:53:14 +00:00
basic_stringstream 3.cc: _S_pback_size now belongs to basic_filebuf. 2003-04-23 22:34:51 +00:00
fpos Reshuffle 27_io testsuite. 2003-04-10 07:15:40 +00:00
ios_base copy_neg.cc: Remove excess errors dg marker, use dg-errors instead. 2003-05-14 04:30:40 +00:00
manipulators Reshuffle 27_io testsuite. 2003-04-10 07:15:40 +00:00
objects [multiple changes] 2003-05-11 04:20:57 +00:00
types Reshuffle 27_io testsuite. 2003-04-10 07:15:40 +00:00