[project @ 2000-05-01 14:44:25 by panne]
authorpanne <unknown>
Mon, 1 May 2000 14:44:25 +0000 (14:44 +0000)
committerpanne <unknown>
Mon, 1 May 2000 14:44:25 +0000 (14:44 +0000)
The NCG doesn't like `foreign label' yet, so addrOf_ErrorHdrHook is a
C function now.

ghc/lib/std/cbits/writeError.c

index 59aa2b2..2072b69 100644 (file)
@@ -1,7 +1,7 @@
 /* 
  * (c) The GRASP/AQUA Project, Glasgow University, 1998
  *
- * $Id: writeError.c,v 1.4 1999/11/09 10:46:27 simonmar Exp $
+ * $Id: writeError.c,v 1.5 2000/05/01 14:44:25 panne Exp $
  *
  * hPutStr Runtime Support
  */
@@ -24,6 +24,12 @@ implementation in one or two places.)
 #include <fcntl.h>
 #endif
 
+StgAddr
+addrOf_ErrorHdrHook(void)
+{
+  return &ErrorHdrHook;
+}
+
 void
 writeErrString__ (msg_hdr, msg, len)
 StgAddr msg_hdr;