diff options
author | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-04-30 19:04:43 +0000 |
---|---|---|
committer | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-04-30 19:04:43 +0000 |
commit | 120167de0417952ecc4e33d624b0c59367ec9362 (patch) | |
tree | 675e7bd479fa5aadbb72f715cd7b93fb419ebd2a /libstdc++-v3/src/misc-inst.cc | |
parent | 8097be660f8a06c78587d13e0858209e78162a8f (diff) | |
download | gcc-120167de0417952ecc4e33d624b0c59367ec9362.tar.gz |
2002-04-30 Benjamin Kosnik <bkoz@redhat.com>
* include/ext/stdio_filebuf.h: New file.
* include/ext/enc_filebuf.h: New file.
* config/io/basic_file_stdio.h (__basic_file::sys_open): Add fd ctor.
* config/io/basic_file_stdio.cc: Same.
* include/bits/fstream.tcc (filebuf::_M_allocate_internal_buffer):
Remove _M_unbuf hacks.
(filebuf::_M_destroy_internal_buffer): Same.
(filebuf::filebuf(cfile, openmode, int_type): Remove definition.
(filebuf::fd): Remove.
* include/std/std_fstream.h (filebuf::_M_unbuf): Remove.
(filebuf::filebuf(__c_file*, openmode, int_type)): Remove.
(filebuf::fd): Remove.
* src/ios.cc (ios_base::_S_ios_create): Change to use specialized
filebufs.
(ios_base::_S_ios_destroy): Same.
* src/misc-inst.cc (file_filebuf<char>): Add instantiation.
* include/Makefile.am (ext_headers): Add ext_filebuf.h,
stdio_filebuf.h. * include/Makefile.in: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@52961 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/src/misc-inst.cc')
-rw-r--r-- | libstdc++-v3/src/misc-inst.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libstdc++-v3/src/misc-inst.cc b/libstdc++-v3/src/misc-inst.cc index a276a732ed3..07a4b1a1aa2 100644 --- a/libstdc++-v3/src/misc-inst.cc +++ b/libstdc++-v3/src/misc-inst.cc @@ -44,6 +44,7 @@ #include <istream> #include <ostream> #include <iomanip> +#include <ext/stdio_filebuf.h> // NB: Unnecessary if the .h headers already include these. #ifndef _GLIBCPP_FULLY_COMPLIANT_HEADERS @@ -264,4 +265,10 @@ namespace std __copy_streambufs(basic_ios<wchar_t>&, basic_streambuf<wchar_t>*, basic_streambuf<wchar_t>*); #endif + + using __gnu_cxx::stdio_filebuf; + template class stdio_filebuf<char>; +#ifdef _GLIBCPP_USE_WCHAR_T + template class stdio_filebuf<wchar_t>; +#endif } //std |