X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=includes%2FRtsAPI.h;h=41f0fc026c502fc4697d25ea11a6eb53e9013b83;hb=b547f2e28b0f07b089aada1164c1dd834f894996;hp=54fa3ee560f0d5536777a7071471df8b8c310130;hpb=8bac478832e0cf9fa7ad1cfc81c08b0b9f13938e;p=ghc-hetmet.git diff --git a/includes/RtsAPI.h b/includes/RtsAPI.h index 54fa3ee..41f0fc0 100644 --- a/includes/RtsAPI.h +++ b/includes/RtsAPI.h @@ -22,7 +22,8 @@ typedef enum { NoStatus, /* not finished yet */ Success, /* completed successfully */ Killed, /* uncaught exception */ - Interrupted /* stopped in response to a call to interruptStgRts */ + Interrupted, /* stopped in response to a call to interruptStgRts */ + HeapExhausted /* out of memory */ } SchedulerStatus; typedef StgClosure *HaskellObj; @@ -45,6 +46,10 @@ extern void setProgArgv ( int argc, char *argv[] ); extern void getFullProgArgv ( int *argc, char **argv[] ); extern void setFullProgArgv ( int argc, char *argv[] ); +#ifndef mingw32_HOST_OS +extern void shutdownHaskellAndSignal (int sig); +#endif + /* exit() override */ extern void (*exitFn)(int);