Skip to content
Snippets Groups Projects
Commit 535df215 authored by bkoz's avatar bkoz
Browse files

2001-05-07  Benjamin Kosnik  <bkoz@redhat.com>

	libstdc++/2523
	* include/bits/std_fstream.h (basic_filebuf): Change signature.
	* include/bits/fstream.tcc (basic_filebuf): Change bool argument
	to int_type, pass in buffer size info.
	* include/bits/std_streambuf.h (_M_is_indeterminate): Check for
	unbuffered situation.
	(underflow): Remove codecvt bits for the time being.
	* include/bits/istream.tcc (istream::sentry): Avoid sputbackc call.
	* include/bits/locale_facets.tcc (_M_extract): Cache dereference
	values from iterators, clean.
	* src/locale.cc: Ditto.
	* include/bits/sbuf_iter.h: Format.
	* src/ios.cc: Explicitly pass in buffer sizes at creation time.
	* testsuite/27_io/narrow_stream_objects.cc: Add tests.
	* testsuite/27_io/filebuf.cc: Tweaks.
	* testsuite/27_io/filebuf_members.cc: Tweaks.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41909 138bc75d-0d04-0410-961f-82ee72b054a4
parent 519e77eb
No related merge requests found
...@@ -96,6 +96,7 @@ test01() ...@@ -96,6 +96,7 @@ test01()
// libstdc++/2523 // libstdc++/2523
void test02() void test02()
{ {
using namespace std;
int i; int i;
cin >> i; cin >> i;
cout << "i == " << i << endl; cout << "i == " << i << endl;
...@@ -104,6 +105,7 @@ void test02() ...@@ -104,6 +105,7 @@ void test02()
// libstdc++/2523 // libstdc++/2523
void test03() void test03()
{ {
using namespace std;
ios_base::sync_with_stdio(false); ios_base::sync_with_stdio(false);
int i; int i;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment