diff options
| author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-28 23:02:46 +0000 |
|---|---|---|
| committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-28 23:02:46 +0000 |
| commit | f28b2a4c309411708b0bedcb08551c5483736de3 (patch) | |
| tree | 120c0218b0a24188c850f323a7820c110f919815 /libstdc++-v3/include/std/std_fstream.h | |
| parent | bee5df6a4b5f52d1d5a6eeea906900b9a89eec54 (diff) | |
| download | ppe42-gcc-f28b2a4c309411708b0bedcb08551c5483736de3.tar.gz ppe42-gcc-f28b2a4c309411708b0bedcb08551c5483736de3.zip | |
2003-04-28 Paolo Carlini <pcarlini@unitus.it>
* include/std/std_streambuf.h (_M_buf_size): is currently
used only for basic_filebuf, therefore move it there.
(basic_streambuf(), ~basic_streambuf()): Adjust.
* include/std/std_fstream.h (_M_buf_size): Moved here.
* include/bits/fstream.tcc (basic_filebuf()): Adjust.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66191 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/std/std_fstream.h')
| -rw-r--r-- | libstdc++-v3/include/std/std_fstream.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libstdc++-v3/include/std/std_fstream.h b/libstdc++-v3/include/std/std_fstream.h index 6a58a4a56bb..8c388bdfb3b 100644 --- a/libstdc++-v3/include/std/std_fstream.h +++ b/libstdc++-v3/include/std/std_fstream.h @@ -45,6 +45,7 @@ #include <istream> #include <ostream> #include <locale> // For codecvt +#include <cstdio> // For SEEK_SET, SEEK_CUR, SEEK_END, BUFSIZ #include <bits/basic_file.h> #include <bits/gthr.h> @@ -113,6 +114,13 @@ namespace std __state_type _M_state_cur; __state_type _M_state_beg; + /** + * @if maint + * Actual size of internal buffer. + * @endif + */ + size_t _M_buf_size; + // Set iff _M_buf is allocated memory from _M_allocate_internal_buffer. /** * @if maint @@ -209,6 +217,7 @@ namespace std ~basic_filebuf() { this->close(); + _M_buf_size = 0; _M_last_overflowed = false; } |

