[project @ 2002-12-05 23:49:43 by mthomas]
[ghc-hetmet.git] / ghc / rts / ForeignCall.h
index 508f49f..0a962b5 100644 (file)
@@ -1,5 +1,7 @@
 /* -----------------------------------------------------------------------------
- * $Id: ForeignCall.h,v 1.2 1998/12/02 13:28:23 simonm Exp $
+ * $Id: ForeignCall.h,v 1.8 1999/11/08 15:30:39 sewardj Exp $
+ *
+ * (c) The GHC Team, 1998-1999
  *
  * Prototypes for functions in ForeignCall.c
  *
@@ -7,7 +9,13 @@
 
 typedef int StablePtr;
 
-extern void ccall ( CFunDescriptor* descriptor, void (*fun)(void) );
-extern void hcall ( HFunDescriptor* descriptor, StablePtr fun, void* as, void* rs );
-
+extern int ccall ( CFunDescriptor* descriptor, 
+                   void            (*fun)(void), 
+                   StgBCO**        bco,
+                   char            callconv,
+                   Capability*     cap
+                 );
 
+extern StgAddr createAdjThunk ( StgStablePtr stableptr,
+                                StgAddr      typestr,
+                                StgChar      callconv );