X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2FForeignCall.h;h=0a962b571abb4907edfdbc3e63d86506d978d0d5;hb=1b79f36c02accc4d401169a1816825c2ac8e42a4;hp=a36c0ca781b67260042250c67564e0559c08d1ee;hpb=dfb12323d9fd0c8fb717b8e548592f20163b4ed0;p=ghc-hetmet.git diff --git a/ghc/rts/ForeignCall.h b/ghc/rts/ForeignCall.h index a36c0ca..0a962b5 100644 --- a/ghc/rts/ForeignCall.h +++ b/ghc/rts/ForeignCall.h @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: ForeignCall.h,v 1.4 1999/10/15 11:03:10 sewardj Exp $ + * $Id: ForeignCall.h,v 1.8 1999/11/08 15:30:39 sewardj Exp $ * * (c) The GHC Team, 1998-1999 * @@ -9,7 +9,13 @@ typedef int StablePtr; -extern void ccall ( CFunDescriptor* descriptor, void (*fun)(void), StgBCO** bco ); -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 );