aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Carlini <pcarlini@unitus.it>2003-04-17 13:29:15 +0200
committerPaolo Carlini <paolo@gcc.gnu.org>2003-04-17 11:29:15 +0000
commitb5bc3efb4b18338eb7f2b79b257112ee880d086a (patch)
tree6686cd750e99a5f4ada85fc4f59d44ef64b890b8
parentf2dd0c4231f7efddc1c485847b661f7ccee085b8 (diff)
downloadgcc-b5bc3efb4b18338eb7f2b79b257112ee880d086a.zip
gcc-b5bc3efb4b18338eb7f2b79b257112ee880d086a.tar.gz
gcc-b5bc3efb4b18338eb7f2b79b257112ee880d086a.tar.bz2
std_streambuf.h (setp): _M_out_lim, being the end limit of used put area, is set equal to _M_out_beg.
2003-04-17 Paolo Carlini <pcarlini@unitus.it> * include/std/std_streambuf.h (setp): _M_out_lim, being the end limit of used put area, is set equal to _M_out_beg. From-SVN: r65740
-rw-r--r--libstdc++-v3/ChangeLog5
-rw-r--r--libstdc++-v3/include/std/std_streambuf.h12
2 files changed, 15 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 9453611..4edf21d 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,8 @@
+2003-04-17 Paolo Carlini <pcarlini@unitus.it>
+
+ * include/std/std_streambuf.h (setp): _M_out_lim, being
+ the end limit of used put area, is set equal to _M_out_beg.
+
2003-04-16 Benjamin Kosnik <bkoz@redhat.com>
* acinclude.m4 (GLIBCPP_CHECK_PCH): New.
diff --git a/libstdc++-v3/include/std/std_streambuf.h b/libstdc++-v3/include/std/std_streambuf.h
index 62ea740..a487102 100644
--- a/libstdc++-v3/include/std/std_streambuf.h
+++ b/libstdc++-v3/include/std/std_streambuf.h
@@ -203,6 +203,14 @@ namespace std
char_type* _M_out_cur; // Current put area.
char_type* _M_out_end; // End of put area.
+ //@{
+ /**
+ * @if maint
+ * _M_set_indeterminate and setp set it equal to _M_out_beg, then
+ * at each put operation it may be moved forward (toward _M_out_end)
+ * by _M_out_cur_move.
+ * @endif
+ */
char_type* _M_out_lim; // End limit of used put area.
//@}
@@ -629,8 +637,8 @@ namespace std
void
setp(char_type* __pbeg, char_type* __pend)
{
- _M_out_beg = _M_out_cur = __pbeg;
- _M_out_end = _M_out_lim = __pend;
+ _M_out_beg = _M_out_cur = _M_out_lim = __pbeg;
+ _M_out_end = __pend;
if (!(_M_mode & ios_base::out) && __pbeg && __pend)
_M_mode = _M_mode | ios_base::out;
}