]> git.ipfire.org Git - thirdparty/gcc.git/commit
stdio_filebuf.h (stdio_filebuf::stdio_filebuf(...), ...): _M_buf_size_opt == 0 means...
authorPaolo Carlini <pcarlini@unitus.it>
Sat, 12 Apr 2003 16:07:51 +0000 (18:07 +0200)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sat, 12 Apr 2003 16:07:51 +0000 (16:07 +0000)
commit2ad00228892052a135a544c5e5aebfe01699f560
tree7308d635bd6e70b83b04738f38de6e17824c0ed9
parent96cd90694f7fb6a803648bf705858c94ca9a84df
stdio_filebuf.h (stdio_filebuf::stdio_filebuf(...), ...): _M_buf_size_opt == 0 means only...

2003-04-12  Paolo Carlini  <pcarlini at unitus dot it>

* include/ext/stdio_filebuf.h
(stdio_filebuf::stdio_filebuf(int, openmode, bool, size_t),
stdio_filebuf::stdio_filebuf(__c_file*, openmode, size_t):
_M_buf_size_opt == 0 means only "not to use an allocated buffer"
since a stack-based buffer is used for small values of the size_t
parameter.
* include/bits/fstream.tcc (basic_filebuf::_M_really_overflow).
If _M_buf_size != 0 flush out the buffer (any kind, stack-based too).
* testsuite/ext/stdio_filebuf_2.cc: New testfile.

From-SVN: r65513
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/fstream.tcc
libstdc++-v3/include/ext/stdio_filebuf.h
libstdc++-v3/testsuite/ext/stdio_filebuf_2.cc [new file with mode: 0644]