X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=includes%2FRtsAPI.h;h=41f0fc026c502fc4697d25ea11a6eb53e9013b83;hb=43d01ce6e6b2bcc4211ee350eb11dec926e38964;hp=a3a41f025f48ba026ad2167131a13317cd7da6d5;hpb=e7d4b777a1667ccd6912115d43272c3735316eea;p=ghc-hetmet.git diff --git a/includes/RtsAPI.h b/includes/RtsAPI.h index a3a41f0..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; @@ -42,7 +43,15 @@ extern void shutdownHaskell ( void ); extern void shutdownHaskellAndExit ( int exitCode ); extern void getProgArgv ( int *argc, char **argv[] ); 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); /* ---------------------------------------------------------------------------- Locking.