mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-10 18:14:52 +08:00
f13a69eccf
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 |
||
---|---|---|
.. | ||
filebuf_members-1.tst | ||
filebuf_members-1.txt | ||
filebuf_members.cc | ||
filebuf_virtuals-1.tst | ||
filebuf_virtuals-1.txt | ||
filebuf_virtuals-2.tst | ||
filebuf_virtuals-3.tst | ||
filebuf_virtuals.cc | ||
filebuf.cc | ||
fpos.cc | ||
fstream_members.cc | ||
fstream.cc | ||
ifstream_members-1.tst | ||
ifstream_members-1.txt | ||
ifstream_members.cc | ||
ifstream.cc | ||
instantiations.cc | ||
ios_base_callbacks.cc | ||
ios_base_members_static-1.tst | ||
ios_base_members_static.cc | ||
ios_base_storage.cc | ||
ios_base_types.cc | ||
ios_ctor.cc | ||
ios_init.cc | ||
ios_manip_basefield.cc | ||
ios_manip_fmtflags.cc | ||
ios_members.cc | ||
ios.cc | ||
iostream_members.cc | ||
iostream.cc | ||
istream_extractor_arith.cc | ||
istream_extractor_char.cc | ||
istream_extractor_other-1.tst | ||
istream_extractor_other-1.txt | ||
istream_extractor_other-2.tst | ||
istream_extractor_other.cc | ||
istream_manip.cc | ||
istream_seeks-1.tst | ||
istream_seeks-1.txt | ||
istream_seeks-2.tst | ||
istream_seeks-3.tst | ||
istream_seeks.cc | ||
istream_sentry.cc | ||
istream_unformatted-1.tst | ||
istream_unformatted-1.txt | ||
istream_unformatted.cc | ||
istream.cc | ||
istringstream_members.cc | ||
istringstream.cc | ||
narrow_stream_objects.cc | ||
ofstream_members-1.tst | ||
ofstream_members.cc | ||
ofstream.cc | ||
ostream_inserter_arith.cc | ||
ostream_inserter_char-1.tst | ||
ostream_inserter_char-1.txt | ||
ostream_inserter_char.cc | ||
ostream_inserter_other-1.tst | ||
ostream_inserter_other-2.tst | ||
ostream_inserter_other.cc | ||
ostream_manip.cc | ||
ostream_seeks-1.tst | ||
ostream_seeks.cc | ||
ostream_unformatted.cc | ||
ostream.cc | ||
ostringstream_members.cc | ||
ostringstream.cc | ||
standard_manipulators.cc | ||
streambuf_members.cc | ||
streambuf.cc | ||
stringbuf_members.cc | ||
stringbuf_virtuals.cc | ||
stringbuf.cc | ||
stringstream_members.cc | ||
stringstream.cc | ||
wide_stream_objects.cc |