public inbox for
help / color / mirror / Atom feed
Subject: libstdc++/9701
Date: Mon, 24 Feb 2003 18:26:00 -0000	[thread overview]
Message-ID: <> (raw)

The following reply was made to PR libstdc++/9701; it has been noted by GNATS.

Subject: libstdc++/9701
Date: 24 Feb 2003 18:22:58 -0000

 CVSROOT:	/cvs/gcc
 Module name:	gcc
 Changes by:	2003-02-24 18:22:58
 Modified files:
 	libstdc++-v3   : ChangeLog 
 	libstdc++-v3/include/bits: fstream.tcc sstream.tcc streambuf.tcc 
 	libstdc++-v3/include/std: std_fstream.h std_sstream.h 
 Log message:
 	2003-02-24  Paolo Carlini <>
 	Nathan Myers <>
 	PR libstdc++/9404, PR libstdc++/9701 (partial)
 	(aka pptr == epptr implies overflow)
 	* include/bits/fstream.tcc (_M_allocate_internal_buffer):
 	Consistently, _M_out_end points to the end of the buffer just
 	(overflow): Tweak to use _M_out_buf_size().
 	(_M_convert_to_external): The role of the old _M_out_end is
 	now played by _M_out_lim.
 	(_M_really_overflow): Likewise.
 	(seekoff): Likewise.
 	(setbuf): _M_out_end points to the end of the external buffer.
 	* include/bits/sstream.tcc (overflow): Rewrote, taking into
 	account the resolution of DR 169 (TC).
 	(seekoff): Use _M_string.capacity(); ios_base::end is now _M_out_lim.
 	(seekpos): Use _M_string.capacity(); tweak.
 	* include/bits/streambuf.tcc (sputc, xsputn): Remove comments.
 	* include/std/std_fstream.h (sync): The role of the old
 	_M_out_end is now played by _M_out_lim.
 	(_M_set_indeterminate): Use _M_set_determinate.
 	(_M_set_determinate): _M_out_end is now _M_out_lim.
 	(_M_is_indeterminate): Likewise.
 	* include/std/std_sstream.h (str()): _M_out_end is now _M_out_lim.
 	(_M_stringbuf_init): Don't set _M_buf_size, unused for sstreams,
 	which have the information readily available as _M_string.capacity();
 	for ate and app modes, pass the string size to _M_really_sync.
 	(_M_really_sync): Consistently set _M_out_end and _M_out_lim, to
 	point to the end of the buffer (i.e., epptr) and to the string end,
 	* include/std/std_streambuf.h: tweak comments, add _M_out_lim,
 	which points to the right limit of the used put area.
 	(_M_out_cur_move): The role of the old _M_out_end is now played
 	by _M_out_lim.
 	(_M_out_buf_size): Simplify: now (when _M_out_cur) return simply
 	_M_out_end  - _M_out_cur (i.e., pptr), _very_ close to the letter
 	of the standard.
 	(basic_streambuf()): Initialize _M_out_lim too.
 	* testsuite/27_io/ (test10): Trivial tweak.
 	* testsuite/27_io/ (test11): Add.
 	* testsuite/27_io/ (test09): Add.

             reply	other threads:[~2003-02-24 18:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-24 18:26 paolo [this message]
2003-04-14 22:46 libstdc++/9701 paolo
2003-05-12 18:28 libstdc++/9701 bkoz
2003-05-12 18:28 libstdc++/9701 bkoz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).