X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2FForeignCall.c;h=a6a4646536fedc6b0512bd9c137ec2e03821c087;hb=f7750b5a0ec9b532407c2f991035fca6751a877d;hp=38158ce4941ff12ef30021ae341232c75cbcbc8d;hpb=21198e4d1a1f7d41c48d08791b257479d257aba6;p=ghc-hetmet.git diff --git a/ghc/rts/ForeignCall.c b/ghc/rts/ForeignCall.c index 38158ce..a6a4646 100644 --- a/ghc/rts/ForeignCall.c +++ b/ghc/rts/ForeignCall.c @@ -1,6 +1,6 @@ /* ----------------------------------------------------------------------------- - * $Id: ForeignCall.c,v 1.14 2000/04/11 16:49:20 sewardj Exp $ + * $Id: ForeignCall.c,v 1.17 2000/05/26 10:14:34 sewardj Exp $ * * (c) The GHC Team 1994-1999. * @@ -205,7 +205,8 @@ static void universal_call_c_generic printf("%c",(char)argstr[i]); } printf("' [%d arg(s)]\n",n_args); - assert(0); + barf("aborting"); + ASSERT(0); } #undef CALL #undef CMP @@ -385,7 +386,7 @@ int ccall ( CFunDescriptor* d, /* Make it possible for the evaluator to get hold of bytecode for a given function by name. Useful but a hack. Sigh. */ -extern void* getHugs_AsmObject_for ( char* s ); +extern void* /* StgClosure* */ getHugs_BCO_cptr_for ( char* s ); extern int /*Bool*/ combined; /* ----------------------------------------------------------------* @@ -469,7 +470,7 @@ unpackArgsAndCallHaskell_x86_nocallconv_wrk ( StgStablePtr stableptr, sstat = rts_evalIO ( node, &nodeOut ); } else { node = rts_apply ( - asmClosureOfObject(getHugs_AsmObject_for("primRunST")), + getHugs_BCO_cptr_for("runST"), node ); sstat = rts_eval ( node, &nodeOut ); }