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 [EMAIL PROTECTED]
------------------ http://www.pobox.com/~cjm ------------------
_______________________________________________
Aspell-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/aspell-user