[Patch] Simplify basic_stringbuf::seekoff

Paolo Carlini pcarlini@unitus.it
Fri May 30 22:59:00 GMT 2003


Hi,

this is the first of two patches affecting basic_stringbuf::seekoff
and seekpos (the other one is more substantial)

Consider, f.i., __endi: when it's actually used, in the last 'if',
it's always equal to _M_in_end; __newoffi, likewise, which depends
on __endi, is used only when __endi is assigned _M_in_end.

Overall, this saves 4 varibles and two 'if', doesn't seem to worsen
that much the clarity.

Tested x86-linux. Ok with you?

Paolo.

/////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_seekoff
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20030530/8486f128/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_seekoff
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20030530/8486f128/attachment-0001.ksh>


More information about the Libstdc++ mailing list