[project @ 2000-03-13 13:00:00 by sewardj]
authorsewardj <unknown>
Mon, 13 Mar 2000 13:00:00 +0000 (13:00 +0000)
committersewardj <unknown>
Mon, 13 Mar 2000 13:00:00 +0000 (13:00 +0000)
Track recent re-homing of Prelude.h for INTERPRETER.

ghc/rts/Evaluator.c
ghc/rts/Prelude.h
ghc/rts/PrimOps.hc

index 7aef8ef..bd1b14c 100644 (file)
@@ -5,8 +5,8 @@
  * Copyright (c) 1994-1998.
  *
  * $RCSfile: Evaluator.c,v $
- * $Revision: 1.38 $
- * $Date: 2000/03/13 10:39:11 $
+ * $Revision: 1.39 $
+ * $Date: 2000/03/13 13:00:00 $
  * ---------------------------------------------------------------------------*/
 
 #include "Rts.h"
@@ -23,6 +23,7 @@
 #include "Assembler.h" /* for CFun stuff */
 #include "ForeignCall.h"
 #include "PrimOps.h"   /* for __{encode,decode}{Float,Double} */
+#include "Prelude.h"
 #include "Evaluator.h"
 #include "sainteger.h"
 
index 8212319..0e3aeec 100644 (file)
@@ -1,5 +1,5 @@
 /* -----------------------------------------------------------------------------
- * $Id: Prelude.h,v 1.1 2000/03/13 10:53:56 simonmar Exp $
+ * $Id: Prelude.h,v 1.2 2000/03/13 13:00:00 sewardj Exp $
  *
  * (c) The GHC Team, 1998-1999
  *
@@ -96,6 +96,9 @@ extern const StgInfoTable StablePtr_static_info;
 #define W64zh_con_info        I64zh_con_info
 #define W64zh_static_info     I64zh_con_info
 
+#define PutFullMVar_closure    PrelException_PutFullMVar_static_closure
+extern const StgInfoTable PutFullMVar_closure;
+
 #endif
 
 #endif /* COMPILING_RTS */
index ff672a0..2355569 100644 (file)
@@ -1,5 +1,5 @@
 /* -----------------------------------------------------------------------------
- * $Id: PrimOps.hc,v 1.44 2000/03/13 10:53:56 simonmar Exp $
+ * $Id: PrimOps.hc,v 1.45 2000/03/13 13:00:00 sewardj Exp $
  *
  * (c) The GHC Team, 1998-1999
  *
@@ -904,8 +904,13 @@ FN_(putMVarzh_fast)
 #endif
 
   if (info == &FULL_MVAR_info) {
+#ifdef INTERPRETER
+    fprintf(stderr, "fatal: put on a full MVar in Hugs; aborting\n" );
+    exit(1);
+#else
     R1.cl = (StgClosure *)&PutFullMVar_closure;
     JMP_(raisezh_fast);
+#endif
   }
   
   mvar->value = R2.cl;