X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fincludes%2FStable.h;h=c4c207787c598186ffbd1593b4f5e0e300bfd9c3;hb=2f1889c3bdccc3b02d1741aeb4c0493434b12309;hp=12056f9974885eac3141c6e4b26385ad9f59db14;hpb=791d890ca039ce45704b879b292069ddc5821dc0;p=ghc-hetmet.git diff --git a/ghc/includes/Stable.h b/ghc/includes/Stable.h index 12056f9..c4c2077 100644 --- a/ghc/includes/Stable.h +++ b/ghc/includes/Stable.h @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: Stable.h,v 1.12 2001/12/20 16:12:09 sewardj Exp $ + * $Id: Stable.h,v 1.14 2002/12/19 14:25:04 simonmar Exp $ * * (c) The GHC Team, 1998-2000 * @@ -38,14 +38,13 @@ typedef struct { } snEntry; extern DLL_IMPORT_RTS snEntry *stable_ptr_table; -extern DLL_IMPORT_RTS snEntry *stable_ptr_free; - -extern DLL_IMPORT_RTS unsigned int SPT_size; extern void freeStablePtr(StgStablePtr sp); -extern inline StgPtr -deRefStablePtr(StgStablePtr sp) +#ifndef RTS_STABLE_C +extern inline +#endif +StgPtr deRefStablePtr(StgStablePtr sp) { ASSERT(stable_ptr_table[(StgWord)sp].ref > 0); return stable_ptr_table[(StgWord)sp].addr;