This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Strive to prefer sbumpc() to snextc()?!?


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]