From 03ca0adc59bd22a5af8580ed5f1d7478b53cf121 Mon Sep 17 00:00:00 2001
From: rrt <unknown>
Date: Fri, 21 Jul 2000 09:01:48 +0000
Subject: [PATCH] [project @ 2000-07-21 09:01:48 by rrt] Removed ERTSF_ and
 used EXTFUN_RTS instead, which does the same thing.

---
 ghc/includes/StgMacros.h | 19 ++++++++-----------
 1 file changed, 8 insertions(+), 11 deletions(-)

diff --git a/ghc/includes/StgMacros.h b/ghc/includes/StgMacros.h
index c5ebfa576093..d2ee0c358aea 100644
--- a/ghc/includes/StgMacros.h
+++ b/ghc/includes/StgMacros.h
@@ -1,5 +1,5 @@
 /* -----------------------------------------------------------------------------
- * $Id: StgMacros.h,v 1.28 2000/07/20 17:06:41 rrt Exp $
+ * $Id: StgMacros.h,v 1.29 2000/07/21 09:01:48 rrt Exp $
  *
  * (c) The GHC Team, 1998-1999
  *
@@ -47,9 +47,6 @@
 #define EF_(f)		extern F_ f(void)
 #define EDF_(f)		extern DLLIMPORT F_ f(void)
 
-/* Use this rather than EF_ or EDF_ throughout the RTS */
-#define ERTSF_(f)   extern DLL_IMPORT_RTS F_ f(void)
-
 #define ED_		extern
 #define EDD_		extern DLLIMPORT 
 #define ED_RO_		extern const
@@ -296,7 +293,7 @@ static inline int IS_ARG_TAG( StgWord p ) { return p <= ARGTAG_MAX; }
 
 #define HP_CHK_GEN(headroom,liveness,reentry,tag_assts)	\
    if ((Hp += (headroom)) > HpLim ) {			\
-	ERTSF_(stg_gen_chk);				\
+	EXTFUN_RTS(stg_gen_chk);				\
         tag_assts					\
 	R9.w = (W_)LIVENESS_MASK(liveness);		\
         R10.w = (W_)reentry;				\
@@ -309,7 +306,7 @@ static inline int IS_ARG_TAG( StgWord p ) { return p <= ARGTAG_MAX; }
 
 #define STK_CHK_GEN(headroom,liveness,reentry,tag_assts)	\
    if ((Sp - (headroom)) < SpLim) {				\
-	ERTSF_(stg_gen_chk);					\
+	EXTFUN_RTS(stg_gen_chk);					\
         tag_assts						\
 	R9.w = (W_)LIVENESS_MASK(liveness);			\
         R10.w = (W_)reentry;					\
@@ -318,7 +315,7 @@ static inline int IS_ARG_TAG( StgWord p ) { return p <= ARGTAG_MAX; }
 
 #define MAYBE_GC(liveness,reentry)		\
    if (doYouWantToGC()) {			\
-	ERTSF_(stg_gen_hp);			\
+	EXTFUN_RTS(stg_gen_hp);			\
 	R9.w = (W_)LIVENESS_MASK(liveness);	\
         R10.w = (W_)reentry;			\
         JMP_(stg_gen_hp);			\
@@ -331,8 +328,8 @@ static inline int IS_ARG_TAG( StgWord p ) { return p <= ARGTAG_MAX; }
    out to be slowing us down we can make specialised ones.
    -------------------------------------------------------------------------- */
 
-ERTSF_(stg_gen_yield);
-ERTSF_(stg_gen_block);
+EXTFUN_RTS(stg_gen_yield);
+EXTFUN_RTS(stg_gen_block);
 
 #define YIELD(liveness,reentry)			\
   {						\
@@ -350,7 +347,7 @@ ERTSF_(stg_gen_block);
 
 #define BLOCK_NP(ptrs)				\
   {						\
-    ERTSF_(stg_block_##ptrs);			\
+    EXTFUN_RTS(stg_block_##ptrs);			\
     JMP_(stg_block_##ptrs);			\
   }
 
@@ -751,7 +748,7 @@ LoadThreadState (void)
         STGCALL1(getStablePtr,reg_fe_binder)
 	
 #define REGISTER_IMPORT(reg_mod_name)		\
-	do { ERTSF_(reg_mod_name);			\
+	do { EXTFUN_RTS(reg_mod_name);			\
 	  PUSH_INIT_STACK(reg_mod_name) ;	\
 	} while (0)
 	
-- 
GitLab