gcc/libstdc++-v3/include/bits
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_ios.h std_fstream.h (basic_filebuf::_M_codecvt): Add cached member. 2003-05-13 20:13:15 +00:00
basic_ios.tcc std_fstream.h (basic_filebuf::_M_codecvt): Add cached member. 2003-05-13 20:13:15 +00:00
basic_string.h 2003-06-06 Nathan Myers <ncm-nospam@cantrip.org> 2003-06-06 17:19:56 +00:00
basic_string.tcc basic_string.h (_M_fold, [...]): Constify various variables. 2003-06-04 22:53:05 +00:00
boost_concept_check.h
c++config Daily bump. 2003-06-09 00:16:08 +00:00
char_traits.h
codecvt.h
concept_check.h std_bitset.h (_M_do_find_next): Fix -Wall nit. 2003-04-15 06:11:10 +00:00
cpp_type_traits.h re PR libstdc++/3181 (Unable to use sqrt,cos,sin,... with int argument.) 2003-05-11 09:07:17 +00:00
demangle.h demangle.h: Prepend accessors of class qualifier with 'get_' in order to fix warnings when... 2003-03-11 13:48:16 +00:00
deque.tcc
fpos.h
fstream.tcc fstream.tcc (_M_underflow): Do not special case the unbuffered case... 2003-06-10 00:05:49 +00:00
functexcept.h
gslice_array.h
gslice.h
indirect_array.h
ios_base.h [multiple changes] 2003-05-11 04:20:57 +00:00
istream.tcc re PR libstdc++/11095 (C++ iostream manipulator causes segfault when called iwth negative argument) 2003-06-05 23:25:05 +00:00
list.tcc
locale_classes.h std_fstream.h (basic_filebuf::_M_codecvt): Add cached member. 2003-05-13 20:13:15 +00:00
locale_facets.h stl_algo.h: Enums as _S_. 2003-05-07 05:01:59 +00:00
locale_facets.tcc locale_facets.tcc (do_get): Honor $22.2.6.3.3/8 and make sure the number of digits required after the... 2003-05-27 17:14:49 -04:00
localefwd.h std_fstream.h (basic_filebuf::_M_codecvt): Add cached member. 2003-05-13 20:13:15 +00:00
mask_array.h
ostream.tcc re PR libstdc++/11095 (C++ iostream manipulator causes segfault when called iwth negative argument) 2003-06-05 23:25:05 +00:00
pthread_allocimpl.h
slice_array.h
sstream.tcc sstream.tcc (pbackfail): Minor clean up and reformatting, consistent with basic_filebuf::pbackfail. 2003-06-02 18:24:30 +00:00
stl_algo.h stl_algo.h: Enums as _S_. 2003-05-07 05:01:59 +00:00
stl_algobase.h re PR libstdc++/9024 (Input fails after call to basic_filebuf<>::pubsetbuf(0, 0)) 2003-06-06 00:19:17 +00:00
stl_alloc.h stl_alloc.h: Cleanups. 2003-06-06 15:50:28 +00:00
stl_bvector.h stl_algo.h: Enums as _S_. 2003-05-07 05:01:59 +00:00
stl_construct.h
stl_deque.h localename.cc: Standardize exception strings. 2003-04-28 23:05:57 +00:00
stl_function.h
stl_heap.h
stl_iterator_base_funcs.h
stl_iterator_base_types.h
stl_iterator.h 2003-06-06 Nathan Myers <ncm-nospam@cantrip.org> 2003-06-06 17:19:56 +00:00
stl_list.h
stl_map.h re PR libstdc++/9811 (incorrect documentation for std::map::lower_bound, etc.) 2003-02-25 06:27:10 +00:00
stl_multimap.h re PR libstdc++/9811 (incorrect documentation for std::map::lower_bound, etc.) 2003-02-25 06:27:10 +00:00
stl_multiset.h
stl_numeric.h
stl_pair.h
stl_pthread_alloc.h
stl_queue.h
stl_raw_storage_iter.h
stl_relops.h
stl_set.h
stl_stack.h
stl_tempbuf.h
stl_threads.h stl_threads.h (_Atomic_swap): Kill it... 2003-05-05 22:28:16 +00:00
stl_tree.h stl_algo.h: Enums as _S_. 2003-05-07 05:01:59 +00:00
stl_uninitialized.h
stl_vector.h localename.cc: Standardize exception strings. 2003-04-28 23:05:57 +00:00
stream_iterator.h
streambuf_iterator.h streambuf_iterator.h (_M_put): Set _M_failed if sputn fails. 2003-03-07 14:14:11 +00:00
streambuf.tcc fstream.tcc (_M_underflow): Do not special case the unbuffered case... 2003-06-10 00:05:49 +00:00
stringfwd.h
type_traits.h
valarray_after.h
valarray_array.h
valarray_array.tcc
valarray_before.h
vector.tcc