diff options
author | Paolo Carlini <pcarlini@unitus.it> | 2003-04-12 18:07:51 +0200 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2003-04-12 16:07:51 +0000 |
commit | 2ad00228892052a135a544c5e5aebfe01699f560 (patch) | |
tree | 7308d635bd6e70b83b04738f38de6e17824c0ed9 /gcc | |
parent | 96cd90694f7fb6a803648bf705858c94ca9a84df (diff) | |
download | gcc-2ad00228892052a135a544c5e5aebfe01699f560.zip gcc-2ad00228892052a135a544c5e5aebfe01699f560.tar.gz gcc-2ad00228892052a135a544c5e5aebfe01699f560.tar.bz2 |
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
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions