This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [RFC] Strive to prefer sbumpc() to snextc()?!?
- From: Paolo Carlini <pcarlini at suse dot de>
- To: Paolo Carlini <pcarlini at suse dot de>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>, Nathan Myers <ncm at cantrip dot org>
- Date: Thu, 22 Apr 2004 13:45:17 +0200
- Subject: Re: [RFC] Strive to prefer sbumpc() to snextc()?!?
- References: <4087A6E1.2070201@suse.de>
Paolo Carlini wrote:
The latter results are obtained via the attached **broken** patch,
which uses sbumpc() and, incorrectly, sungetc() (which may fail!).
Actually, *perhaps* the attached "proof of concept" patch is not so
broken, after all ;) ...
1- Passes the testsuite (we have got quite a few getline testcases)
2- sungetc() happens only after a sbumpc() not returning eof.
Paolo.