[Patch] Remove some redundant NULL pointer checks.
Paolo Carlini
pcarlini@unitus.it
Thu Apr 17 16:03:00 GMT 2003
Hi,
the below, blessed by Nathan (see his original message
concerning in_avail()), removes many redundant NULL pointer
checks from iostream functions.
Basically, the point is that if any of _M_out_* (_M_in_*)
is NULL all the others are NULL too.
I took the occasion, to also const-qualify
some boolean variables.
Tested x86-linux.
Benjamin, do you like it for trunk?
Thanks,
Paolo.
////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_null_checks
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20030417/20cce248/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_null_checks3
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20030417/20cce248/attachment-0001.ksh>
More information about the Libstdc++
mailing list