In article <20251124190115.f6256c9bdaacb9ac4603a4ea@127.0.0.1>,   
   Kerr-Mudd, John wrote:   
   >On Wed, 19 Nov 2025 11:22:08 +0100   
   >albert@spenarnc.xs4all.nl wrote:   
   >   
   >> In article <87o6oyrc7i.fsf@nightsong.com>,   
   >> Paul Rubin wrote:   
   >>   
   >> The ciforth approach is more sensible. The terminal input buffer is   
   >> filled from the input stream. It is large say 16K.   
   >> Now you carve lines out of the buffer, and use a parse pointer,   
   >> maybe >IN. As soon as you find that there are no more line endings   
   >> in the remaining buffer, you copy the remainder to the start of   
   >> the buffer and fill the buffer to the brim.   
   >> In this case you will not copy more than is necessary.   
   >>   
   >A good approach, IMHO.   
   >But how do you deal with the case where there's no line ending at EoF?   
   >ISTM an additional action is required for the last line.   
      
   There is an action at EoF regardless.   
      
   >   
   >--   
   >Bah, and indeed Humbug.   
   --   
   The Chinese government is satisfied with its military superiority over USA.   
   The next 5 year plan has as primary goal to advance life expectancy   
   over 80 years, like Western Europe.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|