projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cf8bb9c
)
[project @ 1998-01-23 15:23:07 by sof]
author
sof
<unknown>
Fri, 23 Jan 1998 15:23:07 +0000
(15:23 +0000)
committer
sof
<unknown>
Fri, 23 Jan 1998 15:23:07 +0000
(15:23 +0000)
hook function for I/O errors
ghc/runtime/hooks/IOErrorHdr.lc
[new file with mode: 0644]
patch
|
blob
diff --git a/ghc/runtime/hooks/IOErrorHdr.lc
b/ghc/runtime/hooks/IOErrorHdr.lc
new file mode 100644
(file)
index 0000000..
73676f5
--- /dev/null
+++ b/
ghc/runtime/hooks/IOErrorHdr.lc
@@ -0,0
+1,11
@@
+\begin{code}
+#include "rtsdefs.h"
+
+void
+IOErrorHdrHook (FILE *where)
+{
+ fflush( stdout ); /* Flush out any pending output */
+
+ fprintf(where, "\nI/O error: ");
+}
+\end{code}