/* -----------------------------------------------------------------------------
- * $Id: Main.c,v 1.30 2001/08/14 13:40:09 sewardj Exp $
+ * $Id: Main.c,v 1.32 2002/01/22 13:54:22 simonmar Exp $
*
* (c) The GHC Team 1998-2000
*
# include <windows.h>
#endif
-extern void __init_PrelMain(void);
+extern void __stginit_PrelMain(void);
/* Hack: we assume that we're building a batch-mode system unless
* INTERPRETER is set
SchedulerStatus status;
/* all GranSim/GUM init is done in startupHaskell; sets IAmMainThread! */
- startupHaskell(argc,argv,__init_PrelMain);
+ startupHaskell(argc,argv,__stginit_PrelMain);
/* kick off the computation by creating the main thread with a pointer
to mainIO_closure representing the computation of the overall program;
/* check the status of the entire Haskell computation */
switch (status) {
- case Deadlock:
- prog_belch("no threads to run: infinite loop or deadlock?");
- exit_status = EXIT_DEADLOCK;
- break;
case Killed:
prog_belch("main thread exited (uncaught exception)");
exit_status = EXIT_KILLED;