X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2FForeignCall.h;h=0a962b571abb4907edfdbc3e63d86506d978d0d5;hb=79368b8499ceac9fe663a713191bb386b0dd2fd1;hp=508f49fb0578db902769302741428a1c8a6da4f9;hpb=438596897ebbe25a07e1c82085cfbc5bdb00f09e;p=ghc-hetmet.git diff --git a/ghc/rts/ForeignCall.h b/ghc/rts/ForeignCall.h index 508f49f..0a962b5 100644 --- a/ghc/rts/ForeignCall.h +++ b/ghc/rts/ForeignCall.h @@ -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 );