[project @ 1997-03-14 03:14:25 by sof]
authorsof <unknown>
Fri, 14 Mar 1997 03:14:53 +0000 (03:14 +0000)
committersof <unknown>
Fri, 14 Mar 1997 03:14:53 +0000 (03:14 +0000)
Flush output stream

ghc/runtime/hooks/ErrorHdr.lc
ghc/runtime/hooks/PatErrorHdr.lc

index d71a3a9..3c04fec 100644 (file)
@@ -4,6 +4,8 @@
 void
 ErrorHdrHook (FILE *where)
 {
+    fflush( stdout );                  /* Flush out any pending output */
+
     fprintf(where, "\nFail: ");
 }
 \end{code}
index 5e175a4..2382049 100644 (file)
@@ -4,6 +4,8 @@
 void
 PatErrorHdrHook (FILE *where)
 {
+    fflush( stdout );                  /* Flush out any pending output */
+
     fprintf(where, "\nFail: ");
 }
 \end{code}