[PATCH] A generic basic_filebuf::_M_underflow
Pétur Runólfsson
peturr02@ru.is
Sun May 4 10:48:00 GMT 2003
Hi,
This patch removes the specializations of basic_filebuf::_M_underflow
and adds a generic version, based on the old wchar_t specialization.
This naturally depends on my patch for cin being applied first,
otherwise things will break pretty badly.
Tested on linux on x86
Petur
2003-05-04 Petur Runolfsson <peturr02@ru.is>
PR libstdc++/9027
PR libstdc++/9520
PR libstdc++/10096
* include/bits/fstream.tcc (basic_file::_M_underflow): Add generic
implementation, based on old wchar_t specialization, add support
for codecvt::in() return value of codecvt_base::noconv, remove
_M_file.sys_ungetc() call.
* include/std/std_fstream.h (basic_file::underflow,
basic_file::uflow, basic_file::_M_underflow): Remove
specialization declarations, call _M_underflow from generic versions
of underflow and uflow.
* src/fstream.cc (basic_file::underflow, basic_file::uflow,
basic_file::_M_underflow): Remove specializations.
* src/Makefile.am (sources): Remove fstream.cc.
* testsuite/27_io/basic_filebuf/underflow/10096.cc: New test.
* testsuite/27_io/basic_filebuf/underflow/char/1.cc: New test.
* testsuite/27_io/basic_filebuf/underflow/char/9027.cc: New test.
* testsuite/27_io/basic_filebuf/underflow/wchar_t/9520.cc: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: underflow.diff.gz
Type: application/x-gzip
Size: 3707 bytes
Desc: underflow.diff.gz
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20030504/477e41ec/attachment.bin>
More information about the Libstdc++
mailing list