/* -----------------------------------------------------------------------------
- * $Id: HsFFI.h,v 1.11 2000/12/04 12:31:20 simonmar Exp $
+ * $Id: HsFFI.h,v 1.14 2001/03/28 18:48:46 qrczak Exp $
*
* (c) The GHC Team, 2000
*
typedef StgFloat HsFloat;
typedef StgDouble HsDouble;
typedef StgBool HsBool;
-typedef void* HsAddr; /* this should better match StgAddr */
-typedef void* HsForeignObj; /* ... and this StgForeignPtr */
+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* 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
-#define HS_CHAR_MAX __INT32_MAX
+#define HS_CHAR_MAX 0x10FFFF
/* this mirrors the distinction of cases in StgTypes.h */
#if SIZEOF_VOID_P == 8