aspell-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Aspell-user] aspell 0.50.3/Win32/Emacs (improved patch)


From: Christopher J. Madsen
Subject: [Aspell-user] aspell 0.50.3/Win32/Emacs (improved patch)
Date: Fri, 20 Dec 2002 14:00:28 -0600 (CST)

I've had time to poke around in the aspell code some more, and have
come up with an improvement to my previous patch.  Instead of patching
the stream code to flush after every newline, this patch flushes the
output when it's ready to read more input from the pipe.

*** aspell-0.50.3/prog/aspell.cpp       Thu Dec 19 19:24:19 2002
--- aspell-0.50.3/prog/aspell.cpp       Fri Dec 20 01:46:05 2002
*************** void pipe() 
*** 495,500 ****
--- 495,501 ----
  
    for (;;) {
      buf.clear();
+     fflush(stdout);
      while (c = getchar(), c != '\n' && c != EOF)
        buf.push_back(static_cast<char>(c));
      if (c == '\n')


This replaces my previous patch to fstream.cpp, and should be more
efficient.  I think the real problem is that _IOLBF is not really
supported on Windows, but I can't fix that.

-- 
Chris Madsen                                            address@hidden
  ------------------  http://www.pobox.com/~cjm  ------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]