From d34cca401fa00c7ebbf2085bf5490baf4fa5c0d3 Mon Sep 17 00:00:00 2001 From: simonmar Date: Fri, 23 May 2003 08:28:48 +0000 Subject: [PATCH] [project @ 2003-05-23 08:28:48 by simonmar] Remove ancient vestiges of StgHugs: the COMPILER #define. --- ghc/includes/Stg.h | 5 +---- ghc/rts/RtsAPI.c | 6 +----- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/ghc/includes/Stg.h b/ghc/includes/Stg.h index b515e21..a877e2f 100644 --- a/ghc/includes/Stg.h +++ b/ghc/includes/Stg.h @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $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 * @@ -78,9 +78,6 @@ # 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. * diff --git a/ghc/rts/RtsAPI.c b/ghc/rts/RtsAPI.c index b92794c..4f7e783 100644 --- a/ghc/rts/RtsAPI.c +++ b/ghc/rts/RtsAPI.c @@ -1,5 +1,5 @@ /* ---------------------------------------------------------------------------- - * $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 * @@ -179,7 +179,6 @@ rts_mkFunPtr (HsFunPtr a) return p; } -#ifdef COMPILER /* GHC has em, Hugs doesn't */ HaskellObj rts_mkBool (HsBool b) { @@ -195,7 +194,6 @@ rts_mkString (char *s) { return rts_apply((StgClosure *)unpackCString_closure, rts_mkPtr(s)); } -#endif /* COMPILER */ HaskellObj rts_apply (HaskellObj f, HaskellObj arg) @@ -366,7 +364,6 @@ rts_getFunPtr (HaskellObj p) return (void *)(p->payload[0]); } -#ifdef COMPILER /* GHC has em, Hugs doesn't */ HsBool rts_getBool (HaskellObj p) { @@ -378,7 +375,6 @@ rts_getBool (HaskellObj p) barf("rts_getBool: not a Bool"); } } -#endif /* COMPILER */ /* ---------------------------------------------------------------------------- Evaluating Haskell expressions -- 1.7.10.4