projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 1998-08-14 10:50:30 by sof]
[ghc-hetmet.git]
/
ghc
/
runtime
/
hooks
/
ErrorHdr.lc
diff --git
a/ghc/runtime/hooks/ErrorHdr.lc
b/ghc/runtime/hooks/ErrorHdr.lc
index
3c04fec
..
9e32f4b
100644
(file)
--- a/
ghc/runtime/hooks/ErrorHdr.lc
+++ b/
ghc/runtime/hooks/ErrorHdr.lc
@@
-2,10
+2,9
@@
#include "rtsdefs.h"
void
#include "rtsdefs.h"
void
-ErrorHdrHook (FILE *where)
+ErrorHdrHook (StgInt fd)
{
{
- fflush( stdout ); /* Flush out any pending output */
-
- fprintf(where, "\nFail: ");
+ const char msg[]="\nFail: ";
+ write(fd,msg,sizeof(msg)-1);
}
\end{code}
}
\end{code}