* Deprecated `Addr' and `freeHaskellFunctionPtr'
I deprecated them only in the comments and docu. Using a DEPRECATED pragma
on the `Addr' functions doesn't make sense, because `Ptr' internally is
build on top of `Addr'.
* Added `HsPtr' and `HsFunPtr' to `HsFFI.h'; deprecated `HsAddr'
* Updated the docu to reflect these changes
/* -----------------------------------------------------------------------------
/* -----------------------------------------------------------------------------
- * $Id: HsFFI.h,v 1.12 2000/12/13 11:57:19 simonmar Exp $
+ * $Id: HsFFI.h,v 1.13 2001/01/03 03:10:32 chak Exp $
*
* (c) The GHC Team, 2000
*
*
* (c) The GHC Team, 2000
*
typedef StgFloat HsFloat;
typedef StgDouble HsDouble;
typedef StgBool HsBool;
typedef StgFloat HsFloat;
typedef StgDouble HsDouble;
typedef StgBool HsBool;
-typedef void* HsAddr; /* this should better match StgAddr */
+typedef void* HsPtr; /* this should better match StgAddr */
+typedef void (*HsFunPtr)(void); /* this should better match StgAddr */
typedef void* HsForeignPtr; /* ... and this StgForeignPtr */
typedef void* HsForeignPtr; /* ... and this StgForeignPtr */
-typedef void* HsForeignObj; /* DEPRECATED */
typedef void* HsStablePtr;
typedef void* HsStablePtr;
+typedef void* HsAddr; /* DEPRECATED */
+typedef void* HsForeignObj; /* DEPRECATED */
/* this should correspond to the type of StgChar in StgTypes.h */
#define HS_CHAR_MIN 0
/* this should correspond to the type of StgChar in StgTypes.h */
#define HS_CHAR_MIN 0