X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fincludes%2FStable.h;h=960ac271800797ce98ee563305488187f257d769;hb=d4e0a55c3761544989209a2180d6d0489470db3d;hp=4552439e8779fe7dfa0d6f5bb8fc420450ff9ed0;hpb=7f309f1c021e7583f724cce599ce2dd3c439361b;p=ghc-hetmet.git diff --git a/ghc/includes/Stable.h b/ghc/includes/Stable.h index 4552439..960ac27 100644 --- a/ghc/includes/Stable.h +++ b/ghc/includes/Stable.h @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: Stable.h,v 1.2 1999/02/05 16:02:28 simonm Exp $ + * $Id: Stable.h,v 1.4 1999/03/02 19:44:16 sof Exp $ * * (c) The GHC Team, 1998-1999 * @@ -22,15 +22,15 @@ extern StgStablePtr splitStablePtr(StgStablePtr sp); extern StgStablePtr getStablePtr(StgPtr p); typedef struct { - StgPtr addr; /* either Haskell object or free list */ + StgPtr addr; /* Haskell object, free list, or NULL */ StgWord weight; /* used for reference counting */ - unsigned int keep; /* set by the garbage collector */ + StgClosure *sn_obj; /* the StableName object (or NULL) */ } snEntry; -extern snEntry *stable_ptr_table; -extern snEntry *stable_ptr_free; +extern DLL_IMPORT_RTS snEntry *stable_ptr_table; +extern DLL_IMPORT_RTS snEntry *stable_ptr_free; -extern unsigned int SPT_size; +extern DLL_IMPORT_RTS unsigned int SPT_size; extern inline StgPtr deRefStablePtr(StgStablePtr sp)