diff options
author | Paolo Carlini <pcarlini@unitus.it> | 2003-06-10 02:05:49 +0200 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2003-06-10 00:05:49 +0000 |
commit | f10eea7baea18ed271bb7a4571bc7fa42a51b9c0 (patch) | |
tree | 4796888c4873be33692877192639786c97003001 /gcc/tree-inline.c | |
parent | 22597a82ee205a8640b812d29d12811b6a8b6e07 (diff) | |
download | gcc-f10eea7baea18ed271bb7a4571bc7fa42a51b9c0.zip gcc-f10eea7baea18ed271bb7a4571bc7fa42a51b9c0.tar.gz gcc-f10eea7baea18ed271bb7a4571bc7fa42a51b9c0.tar.bz2 |
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
Diffstat (limited to 'gcc/tree-inline.c')
0 files changed, 0 insertions, 0 deletions