gcc/libstdc++-v3/include/ext
Petur Runolfsson 149639d4f1 re PR libstdc++/12048 (unget does not work)
2003-09-03  Petur Runolfsson  <peturr02@ru.is>

	PR libstdc++/12048
	* include/ext/stdio_sync_filebuf.h
	(stdio_sync_filebuf::_M_unget_buf): Declare it.
	(stdio_sync_filebuf::stdio_sync_filebuf): Initialize _M_unget_buf.
	(stdio_sync_filebuf::uflow): Store the returned character in
	_M_unget_buf.
	(stdio_sync_filebuf::pbackfail): If argument is eof(), pass
	_M_unget_buf to syncungetc(). Set _M_unget_buf to eof().
	(stdio_sync_filebuf<char>::xsgetn): Store last read character in
	_M_unget_buf, if any, else eof().
	(stdio_sync_filebuf<wchar_t>::xsgetn: Store last read character in
	_M_unget_buf, if any, else eof().
	* testsuite/27_io/objects/char/12048.cc: Rename to...
	* testsuite/27_io/objects/char/12048-1.cc: ...this.
	* testsuite/27_io/objects/char/12048-2.cc: New test.
	* testsuite/27_io/objects/char/12048-3.cc: New test.
	* testsuite/27_io/objects/char/12048-4.cc: New test.
	* testsuite/27_io/objects/char/12048-5.cc: New test. XFAIL.
	* testsuite/27_io/objects/wchar_t/12048-1.cc: New test.
	* testsuite/27_io/objects/wchar_t/12048-2.cc: New test.
	* testsuite/27_io/objects/wchar_t/12048-3.cc: New test.
	* testsuite/27_io/objects/wchar_t/12048-4.cc: New test.
	* testsuite/27_io/objects/wchar_t/12048-5.cc: New test. XFAIL.
	* testsuite/ext/stdio_sync_filebuf_char.cc
	(test02, test03, test04, test05): New tests.
	* testsuite/ext/stdio_sync_filebuf_wchar_t.cc
	(test02, test03, test04, test05): New tests.

2003-09-03  Petur Runolfsson  <peturr02@ru.is>

	* docs/html/27_io/howto.html: setbuf(0, 0) has no effect on
	stringbuf or strstreambuf. Fix typos.

From-SVN: r71026
2003-09-03 14:54:03 +00:00
..
algorithm Move from CPP to CXX. 2003-07-05 04:05:45 +00:00
debug_allocator.h [multiple changes] 2003-06-11 15:52:11 +00:00
enc_filebuf.h Move from CPP to CXX. 2003-07-05 04:05:45 +00:00
functional stl_alloc.h: Cleanups. 2003-06-06 15:50:28 +00:00
hash_fun.h stl_alloc.h: Cleanups. 2003-06-06 15:50:28 +00:00
hash_map hash_map (class hash_multimap): Remove extra semicolons from __glibcxx_class_requires3 entries. 2003-07-16 14:23:08 +00:00
hash_set hash_map (class hash_multimap): Remove extra semicolons from __glibcxx_class_requires3 entries. 2003-07-16 14:23:08 +00:00
hashtable.h stl_alloc.h: Cleanups. 2003-06-06 15:50:28 +00:00
iterator Move from CPP to CXX. 2003-07-05 04:05:45 +00:00
malloc_allocator.h [multiple changes] 2003-06-11 15:52:11 +00:00
memory stl_alloc.h: Cleanups. 2003-06-06 15:50:28 +00:00
mt_allocator.h allocator_traits.h: Fix doxygen markup. 2003-07-06 04:37:22 +00:00
new_allocator.h [multiple changes] 2003-06-11 15:52:11 +00:00
numeric Move from CPP to CXX. 2003-07-05 04:05:45 +00:00
pod_char_traits.h pod_char_traits.h: Add state template argument. 2003-07-17 04:01:28 +00:00
pool_allocator.h Move from CPP to CXX. 2003-07-05 04:05:45 +00:00
rb_tree stl_alloc.h: Cleanups. 2003-06-06 15:50:28 +00:00
rope basic_ios.h: Remove *_iter typedefs, change num* typedefs to num_*. 2003-08-12 03:46:18 +00:00
ropeimpl.h ropeimpl.h: #include <ostream> instead of <iostream> 2003-08-19 08:03:09 +00:00
slist Move from CPP to CXX. 2003-07-05 04:05:45 +00:00
stdio_filebuf.h c_locale.h: Include <cstdlib> and <cstring>. 2003-07-14 02:52:05 +00:00
stdio_sync_filebuf.h re PR libstdc++/12048 (unget does not work) 2003-09-03 14:54:03 +00:00