gcc/libstdc++-v3/include/std
Paolo Carlini e3033a2240 fstream.tcc (_M_overflow): Rewrote to call _M_convert_to_external only once (_M_buf_size is now the size...
2003-05-15  Paolo Carlini  <pcarlini@unitus.it>
	    Nathan Myers  <ncm@cantrip.org>

	* include/bits/fstream.tcc (_M_overflow): Rewrote to call
	_M_convert_to_external only once (_M_buf_size is now the size of
	the put area + 1 for the overflow char of a full area); call
	_M_set_buffer instead of _M_set_indeterminate.
	(setbuf): Don't accept a buffer smaller than 2 chars.
	(_M_underflow): Refill _M_buf_size - 1 chars; call _M_set_buffer,
	instead of _M_set_determinate.
	(open): Call _M_set_buffer, instead of _M_set_indeterminate.
	(seekoff): Likewise.
	* include/ext/stdio_filebuf.h (stdio_filebuf(int,
	std::ios_base::openmode, bool, size_t),
	stdio_filebuf(std::__c_file*, std::ios_base::openmode, size_t):
	Likewise.
	* include/std/std_fstream.h (_M_set_indeterminate): Remove.
	(_M_set_determinate): Rename as _M_set_buffer, _M_buf_size ->
	_M_buf_size - 1.
	* include/std/std_streambuf.h: Tweak _M_out_lim comment.
	* testsuite/27_io/basic_filebuf/sgetn/char/1.cc: Tweak, taking
	into account that, for _M_buf_size == BUFSIZ == 8192, the size of
	the put area is now BUFSIZ - 1.
	* testsuite/ext/stdio_filebuf_2.cc: Tweak, taking into account
	that now the smallest _M_buf_size is 2 (still fails, for the same
	reason, with 3.2.3)

Co-Authored-By: Nathan Myers <ncm@cantrip.org>

From-SVN: r66848
2003-05-15 23:43:15 +00:00
..
std_algorithm.h Makefile.am (doxygen, [...]): Tweak targets. 2002-01-28 22:13:12 +00:00
std_bitset.h localename.cc: Standardize exception strings. 2003-04-28 23:05:57 +00:00
std_complex.h re PR libstdc++/5730 (complex<double>::norm() -- huge slowdown from egcs-2.91.66) 2003-03-22 04:57:46 +00:00
std_deque.h Makefile.am: Add new files. 2002-06-12 22:07:53 +00:00
std_fstream.h fstream.tcc (_M_overflow): Rewrote to call _M_convert_to_external only once (_M_buf_size is now the size... 2003-05-15 23:43:15 +00:00
std_functional.h Makefile.am (doxygen, [...]): Tweak targets. 2002-01-28 22:13:12 +00:00
std_iomanip.h c++config (_GLIBCPP_EXTERN_TEMPLATE): Define. 2003-02-13 21:39:03 +00:00
std_ios.h Makefile.am (doxygen, [...]): Tweak targets. 2002-01-28 22:13:12 +00:00
std_iosfwd.h Revert include ordering. 2003-01-23 18:56:00 +00:00
std_iostream.h TODO: Note change in clause 27 docs. 2002-11-21 07:06:41 +00:00
std_istream.h howto.html ('LWG Issues'): Add issue 60, partial implementation only. 2003-04-23 07:05:18 +00:00
std_iterator.h Makefile.am (doxygen, [...]): Tweak targets. 2002-01-28 22:13:12 +00:00
std_limits.h Intro.3: Update with new (proper) names. 2003-02-26 00:02:16 +00:00
std_list.h Makefile.am: Add new files. 2002-06-12 22:07:53 +00:00
std_locale.h locale_facets.h: Move non-facet classes requiring <string> to... 2003-01-22 16:51:52 +00:00
std_map.h Makefile.am (doxygen, [...]): Tweak targets. 2002-01-28 22:13:12 +00:00
std_memory.h std_memory.h: Fix formatting. 2002-07-04 07:25:19 +00:00
std_numeric.h Makefile.am (doxygen, [...]): Tweak targets. 2002-01-28 22:13:12 +00:00
std_ostream.h std_sstream.h (basic_istringstream): Adjust initialization. 2003-03-28 19:45:44 +00:00
std_queue.h PR libstdc++/7157, PR libstdc++/7158, PR libstdc++/7161 2002-06-29 01:10:51 +00:00
std_set.h Makefile.am (doxygen, [...]): Tweak targets. 2002-01-28 22:13:12 +00:00
std_sstream.h std_fstream.h (_M_is_indeterminate): Remove. 2003-05-07 12:48:58 +00:00
std_stack.h PR libstdc++/7157, PR libstdc++/7158, PR libstdc++/7161 2002-06-29 01:10:51 +00:00
std_stdexcept.h Makefile.am (doxygen, [...]): Tweak targets. 2002-01-28 22:13:12 +00:00
std_streambuf.h fstream.tcc (_M_overflow): Rewrote to call _M_convert_to_external only once (_M_buf_size is now the size... 2003-05-15 23:43:15 +00:00
std_string.h Makefile.am (doxygen, [...]): Tweak targets. 2002-01-28 22:13:12 +00:00
std_utility.h Makefile.am (doxygen, [...]): Tweak targets. 2002-01-28 22:13:12 +00:00
std_valarray.h valarray_meta.h: Remove, split into ... 2003-01-24 16:32:11 +00:00
std_vector.h Makefile.am: Add new files. 2002-06-12 22:07:53 +00:00