[project @ 2005-03-10 14:03:28 by simonmar]
[ghc-hetmet.git] / ghc / rts / RetainerProfile.h
index 51ddc64..827daa8 100644 (file)
@@ -1,5 +1,4 @@
 /* -----------------------------------------------------------------------------
- * $Id: RetainerProfile.h,v 1.2 2001/11/26 16:54:21 simonmar Exp $
  *
  * (c) The GHC Team, 2001
  * Author: Sungwoo Park
@@ -21,7 +20,7 @@ extern void  printRetainer         ( FILE *, retainer );
 extern void  retainerProfile       ( void );
 extern void  resetStaticObjectForRetainerProfiling ( void );
 
-extern StgWord flip;
+extern StgWord RTS_VAR(flip);
 
 // extract the retainer set field from c
 #define RSET(c)   ((c)->header.prof.hp.rs)
@@ -38,9 +37,9 @@ retainerSetOf( StgClosure *c )
     return (RetainerSet *)((StgWord)RSET(c) ^ flip);
 }
 
-// firstStack is exported because memInventory() in Schedule.c uses it.
+// Used by Storage.c:memInventory()
 #ifdef DEBUG
-extern bdescr *firstStack;
+extern lnat retainerStackBlocks ( void );
 #endif
 
 #endif /* PROFILING */