From 98ce9d068efb574e38aa07f05204a6046d0fd381 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Wed, 21 May 2003 22:22:25 +0200 Subject: [PATCH] std_fstream.h (_M_set_buffer): Fix indentation. 2003-05-21 Paolo Carlini * include/std/std_fstream.h (_M_set_buffer): Fix indentation. From-SVN: r67065 --- libstdc++-v3/ChangeLog | 4 ++++ libstdc++-v3/include/std/std_fstream.h | 22 +++++++++++----------- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 2325eed89f1..3a3ac682ab6 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,7 @@ +2003-05-21 Paolo Carlini + + * include/std/std_fstream.h (_M_set_buffer): Fix indentation. + 2003-05-21 Jonathan Wakely * docs/html/faq/index.html: Fix typo. diff --git a/libstdc++-v3/include/std/std_fstream.h b/libstdc++-v3/include/std/std_fstream.h index e99d8103286..24c9f7fc6db 100644 --- a/libstdc++-v3/include/std/std_fstream.h +++ b/libstdc++-v3/include/std/std_fstream.h @@ -454,16 +454,16 @@ namespace std void _M_output_unshift(); - // This function sets the pointers of the internal buffer, both get - // and put areas. Typically, __off == _M_in_end - _M_in_beg upon - // _M_underflow; __off == 0 upon _M_overflow, seekoff, open, setbuf. - // - // NB: _M_out_end - _M_out_beg == _M_buf_size - 1, since _M_buf_size - // reflects the actual allocated memory and the last cell is reserved - // for the overflow char of a full put area. - void - _M_set_buffer(streamsize __off) - { + // This function sets the pointers of the internal buffer, both get + // and put areas. Typically, __off == _M_in_end - _M_in_beg upon + // _M_underflow; __off == 0 upon _M_overflow, seekoff, open, setbuf. + // + // NB: _M_out_end - _M_out_beg == _M_buf_size - 1, since _M_buf_size + // reflects the actual allocated memory and the last cell is reserved + // for the overflow char of a full put area. + void + _M_set_buffer(streamsize __off) + { const bool __testin = this->_M_mode & ios_base::in; const bool __testout = this->_M_mode & ios_base::out; if (_M_buf_size) @@ -477,7 +477,7 @@ namespace std } _M_filepos = this->_M_buf + __off; } - } + } }; // [27.8.1.5] Template class basic_ifstream -- 2.30.2