OSDN Git Service

2003-05-07 Paolo Carlini <pcarlini@unitus.it>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 May 2003 12:48:58 +0000 (12:48 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 May 2003 12:48:58 +0000 (12:48 +0000)
commit27be8969a5993493a05cee0560474afca1bab06b
treed5347de6279f2d770da10bdb7d098bea9e9da6de
parent784b199ffefab1ba6d200faa753305a2d3029cf5
2003-05-07  Paolo Carlini  <pcarlini@unitus.it>

* include/std/std_fstream.h (_M_is_indeterminate): Remove.
* src/fstream.cc
(basic_filebuf<char/wchar_t>::_M_underflow): Simplify: either
there is no buffer or __testget == !__testinit.

* src/fstream.cc
(basic_filebuf<char/wchar_t>::_M_underflow): _M_set_determinate()
automatically sets, if appropriate, _M_out_cur == _M_in_cur.

* include/std/std_fstream.h (_M_destroy_pback): Don't set
unnecessarily _M_pback_cur_save and _M_pback_end_save.

* include/std/std_fstream.h (_M_set_determinate): Minor tweak.

* include/std/std_sstream.h (_M_sync): Minor tweak.

* include/bits/fstream.tcc (close): No need to call
_M_destroy_pback, setting _M_pback_init to false suffices
to clean up.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66557 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/fstream.tcc
libstdc++-v3/include/std/std_fstream.h
libstdc++-v3/include/std/std_sstream.h
libstdc++-v3/src/fstream.cc