[Patch] Avoid using _M_move_out_cur in stringbuf/seeks

Paolo Carlini pcarlini@unitus.it
Wed Jun 18 17:56:00 GMT 2003


Hi,

this only a first preparatory step toward major changes to
stringbuf and filebuf: elimination of _M_out_lim, simplification
of _M_move_in_cur and _M_move_out_cur to pbump and gbump.

Anyway, the below is really simple minded: we cannot seek
beyond _M_out_lim, therefore _M_move_out_cur boils down
to simply updating _M_out_cur. Overall, the code becomes
simpler and symmetric get area <-> put area.

Tested x86-linux, ok with you?

Paolo.

//////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_sstream
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20030618/c1015e09/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_sstream
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20030618/c1015e09/attachment-0001.ksh>


More information about the Libstdc++ mailing list