OSDN Git Service

2001-01-16 Benjamin Kosnik <bkoz@redhat.com>
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Jan 2001 07:55:26 +0000 (07:55 +0000)
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Jan 2001 07:55:26 +0000 (07:55 +0000)
commit274003344ac12504aed8c1e44849665341655587
treebfe7d8a82d9aaf725040a4ca862242de45d5855a
parente3c5217a118ee83a586d1250cb7465b54658156b
2001-01-16  Benjamin Kosnik  <bkoz@redhat.com>

* docs/html/17_intro/C++STYLE (classname): Add more existing
and stylish patterns.

libstdc++/944
* include/bits/istream.tcc (istream::sentry::sentry()): Set
failbit if the state of the stream is not good.
* testsuite/27_io/istream_sentry.cc (test02): Add test.
* testsuite/27_io/istream_manip.cc (test01): Modify.

libstdc++/1019
reported by Paolo Carlini <pcarlini@unitus.it>
* include/bits/istream.tcc (operator>>(istream&, string&)): Fix.
* testsuite/21_strings/inserters_extractors.cc (test08): Add test.

libstdc++/1057
* include/bits/std_streambuf.h (setp): Set _M_buf_size correctly.
* include/bits/streambuf.tcc (xsputn): Remove outside if clause.
(xsgetn): Same. Simplify.
* testsuite/27_io/streambuf.cc (test04): Add testcases.

reported by Larry Evans <jcampbell3@prodigy.net>
* include/bits/streambuf.tcc (streambuf::xsputn): Just check for
equality with eof on returned value from overflow.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39059 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/docs/html/17_intro/C++STYLE
libstdc++-v3/include/bits/fstream.tcc
libstdc++-v3/include/bits/istream.tcc
libstdc++-v3/include/bits/std_streambuf.h
libstdc++-v3/include/bits/streambuf.tcc
libstdc++-v3/testsuite/21_strings/inserters_extractors.cc
libstdc++-v3/testsuite/27_io/istream_manip.cc
libstdc++-v3/testsuite/27_io/istream_sentry.cc
libstdc++-v3/testsuite/27_io/istream_unformatted.cc
libstdc++-v3/testsuite/27_io/streambuf.cc