[Patch] Again on __copy_streambufs

Paolo Carlini pcarlini@unitus.it
Sun Apr 27 12:07:00 GMT 2003


Hi,

I guess that for while this will be the last contribution
from me in this specific area. I'm quite happy with it, now ;)

The patch does two, mostly unrelated, things:

 1- Remove any reference to _M_buf_size: this is incorrect
    now, since basic_stringbuf doesn't use it, and isn't
    useful anymore since the various in_avail/sync/interactive
    troubles at the root of it have been fixed elsewhere.

 2- When there is no room in the output buffer, instead of
    copying 'til the end one char at the time in a loop try
    to make room by calling overflow (thanks Nathan!).

Tested x86-linux + 27_io/objects by hand + a few sanity checks.

Ok for trunk?

Paolo.

/////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_copy2
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20030427/f1b290b4/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_copy2
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20030427/f1b290b4/attachment-0001.ksh>


More information about the Libstdc++ mailing list