[project @ 1999-11-01 11:01:11 by sewardj]
[ghc-hetmet.git] / ghc / rts / ForeignCall.h
index 8718ca0..5bff124 100644 (file)
@@ -1,5 +1,5 @@
 /* -----------------------------------------------------------------------------
- * $Id: ForeignCall.h,v 1.3 1999/02/05 16:02:41 simonm Exp $
+ * $Id: ForeignCall.h,v 1.7 1999/10/26 17:27:30 sewardj Exp $
  *
  * (c) The GHC Team, 1998-1999
  *
@@ -9,7 +9,12 @@
 
 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
+                 );
 
+extern StgAddr createAdjThunk ( StgStablePtr stableptr,
+                                StgAddr      typestr,
+                                StgChar      callconv );