gcc/libstdc++-v3/testsuite/22_locale
Benjamin Kosnik f13a69eccf char_traits.h: Remove generic definitions.
2002-07-30  Benjamin Kosnik  <bkoz@redhat.com>
            Gabriel Dos Reis  <gdr@nerim.net>

	* include/bits/char_traits.h: Remove generic definitions.
	* include/bits/streambuf_iterator.h (istreambuf_iterator): Use
	eof, not -2.
	* include/bits/istream.tcc (istream::readsome): Don't check
	against eof, instead use constants.
	(istream::sync): Same.
	(istream::sentry::sentry): Use eq_int_type.
	(istream::get): Same.
	* include/bits/ostream.tcc: Change __pad to
	__pad<_CharT, _Traits>::_S_pad.
	* include/bits/locale_facets.h: Add __pad_traits generic and
	ostreambuf_iterator specialization.
	* include/bits/locale_facets.tcc: Change __pad into struct __pad
	with a _CharT and _Traits template parameter and _S_pad static
	member function.
	* src/locale-inst.cc: Update __pad instantiations.

	* include/std/std_fstream.h: Declare _M_underflow_common
	specializations.
	* src/fstream.cc: New. Add _M_underflow_common specializations.
	* include/bits/fstream.tcc (filebuf::close): Use traits_type.
	(filebuf::_M_underflow_common(bool)): Remove generic version, as
	sys_ungetc and custom int_types don't get along.
	* include/std/std_streambuf.h: Add _M_pos.
	* src/Makefile.am (sources): Add fstream.cc.
	* src/Makefile.in: Regenerate.

	* testsuite/21_strings/capacity.cc: Add char_traits specializations.
	* testsuite/22_locale/codecvt_members_unicode_char.cc: Same.
	* testsuite/22_locale/codecvt_members_unicode_wchar_t.cc: Same.
	* testsuite/22_locale/ctor_copy_dtor.cc: Same.
	* testsuite/27_io/filebuf_virtuals.cc (test07): Move to...
	* testsuite/27_io/filebuf.cc: ...here.
	* testsuite/testsuite_hooks.h: Add gnu_char, gnu_int, char_traits
	specialization for both.
	* testsuite/27_io/streambuf.cc: Add instantiation test,
	testsuite_hooks include.
	* testsuite/27_io/istream.cc: Same.
	* testsuite/27_io/ostream.cc: Same.
	* testsuite/27_io/fstream.cc: Same.
	* testsuite/27_io/stringstream.cc: Same.
	* testsuite/27_io/filebuf.cc: Same.
	* testsuite/27_io/stringbuf.cc: Same.

Co-Authored-By: Gabriel Dos Reis <gdr@nerim.net>

From-SVN: r55893
2002-07-31 02:47:36 +00:00
..
codecvt_members_char_char.cc c_compatibility: New. 2002-06-21 20:21:03 +00:00
codecvt_members_unicode_char.cc char_traits.h: Remove generic definitions. 2002-07-31 02:47:36 +00:00
codecvt_members_unicode_wchar_t.cc char_traits.h: Remove generic definitions. 2002-07-31 02:47:36 +00:00
codecvt_members_wchar_t_char.cc c_compatibility: New. 2002-06-21 20:21:03 +00:00
codecvt.cc
collate_byname.cc
collate_members_char.cc c_compatibility: New. 2002-06-21 20:21:03 +00:00
collate_members_wchar_t.cc c_compatibility: New. 2002-06-21 20:21:03 +00:00
collate.cc
ctor_copy_dtor.cc char_traits.h: Remove generic definitions. 2002-07-31 02:47:36 +00:00
ctype_is_char.cc c_compatibility: New. 2002-06-21 20:21:03 +00:00
ctype_is_wchar_t.cc c_compatibility: New. 2002-06-21 20:21:03 +00:00
ctype_members_char.cc
ctype_members_wchar_t.cc
ctype_narrow_char.cc
ctype_narrow_wchar_t.cc
ctype_scan_char.cc
ctype_scan_wchar_t.cc
ctype_to_char.cc c_compatibility: New. 2002-06-21 20:21:03 +00:00
ctype_to_wchar_t.cc c_compatibility: New. 2002-06-21 20:21:03 +00:00
ctype_widen_char.cc
ctype_widen_wchar_t.cc
ctype.cc
facet.cc
global_templates.cc
members.cc
messages_byname.cc
messages_members_char.cc c_compatibility: New. 2002-06-21 20:21:03 +00:00
messages.cc
money_get_members_char.cc c_compatibility: New. 2002-06-21 20:21:03 +00:00
money_get_members_wchar_t.cc c_compatibility: New. 2002-06-21 20:21:03 +00:00
money_get.cc
money_put_members_char.cc c_compatibility: New. 2002-06-21 20:21:03 +00:00
money_put_members_wchar_t.cc c_compatibility: New. 2002-06-21 20:21:03 +00:00
money_put.cc
moneypunct_byname.cc
moneypunct_members_char.cc c_compatibility: New. 2002-06-21 20:21:03 +00:00
moneypunct_members_wchar_t.cc c_compatibility: New. 2002-06-21 20:21:03 +00:00
moneypunct.cc
num_get_members_char.cc c_compatibility: New. 2002-06-21 20:21:03 +00:00
num_get_members_wchar_t.cc c_compatibility: New. 2002-06-21 20:21:03 +00:00
num_get.cc
num_put_members_char.cc c_compatibility: New. 2002-06-21 20:21:03 +00:00
num_put_members_wchar_t.cc c_compatibility: New. 2002-06-21 20:21:03 +00:00
num_put.cc
numpunct_byname.cc
numpunct_members_char.cc c_compatibility: New. 2002-06-21 20:21:03 +00:00
numpunct_members_wchar_t.cc c_compatibility: New. 2002-06-21 20:21:03 +00:00
numpunct.cc
operators.cc
static_members.cc
time_get_members_char.cc c_compatibility: New. 2002-06-21 20:21:03 +00:00
time_get_members_wchar_t.cc c_compatibility: New. 2002-06-21 20:21:03 +00:00
time_get.cc
time_put_members_char.cc c_compatibility: New. 2002-06-21 20:21:03 +00:00
time_put_members_wchar_t.cc c_compatibility: New. 2002-06-21 20:21:03 +00:00
time_put.cc