|
From: | Juergen Sauermann |
Subject: | Re: [Bug-apl] Yet another editor thingy. |
Date: | Sat, 11 Aug 2018 17:00:39 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 |
Hi Chris, it would remove the clearerr() and unsetf() calls. clearerr() has probably no effect at all because the next fgetc() will do the same. And CIN.unsetf(ios_base::unitbuf) - if at all needed - should go to a different place. The new code would be this: //----------------------------------------------------------------------------- Unicode LineInput::get_uni() { again: const int b0 = fgetc(stdin); if (b0 == EOF) { if (errno == EINTR) goto again; } ... Could you please check if your editor still works with that? I also noticed another fgetc() below the one shown above. I suppose that I should check for EINTR .in that one as well. Best Regards, /// Jürgen On 08/10/2018 03:35 PM, Chris Moller
wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |