Remove ancient vestiges of StgHugs: the COMPILER #define.
/* -----------------------------------------------------------------------------
/* -----------------------------------------------------------------------------
- * $Id: Stg.h,v 1.50 2002/12/11 15:36:39 simonmar Exp $
+ * $Id: Stg.h,v 1.51 2003/05/23 08:28:48 simonmar Exp $
*
* (c) The GHC Team, 1998-1999
*
*
* (c) The GHC Team, 1998-1999
*
# define LAZY_BLACKHOLING
#endif
# define LAZY_BLACKHOLING
#endif
-/* ToDo: remove */
-#define COMPILER 1
-
/* TABLES_NEXT_TO_CODE says whether to assume that info tables are
* assumed to reside just before the code for a function.
*
/* TABLES_NEXT_TO_CODE says whether to assume that info tables are
* assumed to reside just before the code for a function.
*
/* ----------------------------------------------------------------------------
/* ----------------------------------------------------------------------------
- * $Id: RtsAPI.c,v 1.43 2003/03/18 10:28:15 simonmar Exp $
+ * $Id: RtsAPI.c,v 1.44 2003/05/23 08:28:48 simonmar Exp $
*
* (c) The GHC Team, 1998-2001
*
*
* (c) The GHC Team, 1998-2001
*
-#ifdef COMPILER /* GHC has em, Hugs doesn't */
HaskellObj
rts_mkBool (HsBool b)
{
HaskellObj
rts_mkBool (HsBool b)
{
{
return rts_apply((StgClosure *)unpackCString_closure, rts_mkPtr(s));
}
{
return rts_apply((StgClosure *)unpackCString_closure, rts_mkPtr(s));
}
HaskellObj
rts_apply (HaskellObj f, HaskellObj arg)
HaskellObj
rts_apply (HaskellObj f, HaskellObj arg)
return (void *)(p->payload[0]);
}
return (void *)(p->payload[0]);
}
-#ifdef COMPILER /* GHC has em, Hugs doesn't */
HsBool
rts_getBool (HaskellObj p)
{
HsBool
rts_getBool (HaskellObj p)
{
barf("rts_getBool: not a Bool");
}
}
barf("rts_getBool: not a Bool");
}
}
/* ----------------------------------------------------------------------------
Evaluating Haskell expressions
/* ----------------------------------------------------------------------------
Evaluating Haskell expressions