/* ----------------------------------------------------------------------------
- * $Id: RtsAPI.h,v 1.6 1999/07/03 18:39:41 sof Exp $
+ * $Id: RtsAPI.h,v 1.7 1999/07/06 09:42:39 sof Exp $
*
* (c) The GHC Team, 1998-1999
*
#ifndef RTSAPI_H
#define RTSAPI_H
-#include "SchedAPI.h" /* for SchedulerStatus */
-
+/*
+ * Running the scheduler
+ */
+typedef enum {
+ Success,
+ Killed, /* another thread killed us */
+ Interrupted, /* stopped in response to a call to interruptStgRts */
+ Deadlock,
+ AllBlocked, /* subtly different from Deadlock */
+} SchedulerStatus;
+
typedef StgClosure *HaskellObj;
/* ----------------------------------------------------------------------------
/* -----------------------------------------------------------------------------
- * $Id: SchedAPI.h,v 1.5 1999/07/03 18:39:41 sof Exp $
+ * $Id: SchedAPI.h,v 1.6 1999/07/06 09:42:39 sof Exp $
*
* (c) The GHC Team 1998
*
#ifndef SCHEDAPI_H
#define SCHEDAPI_H
-/*
- * Running the scheduler
- */
-
-typedef enum {
- Success,
- Killed, /* another thread killed us */
- Interrupted, /* stopped in response to a call to interruptStgRts */
- Deadlock,
- AllBlocked, /* subtly different from Deadlock */
-} SchedulerStatus;
-
-
/*
* schedule() plus the thread creation functions are not part
* part of the external RTS API, so leave them out if we're
* not compiling rts/ bits. -- sof 7/99
*
*/
-#ifdef COMPILING_RTS
-
SchedulerStatus schedule(StgTSO *main_thread, /*out*/StgClosure **ret);
/*
*/
void RevertCAFs(void);
-#endif
#endif
/* -----------------------------------------------------------------------------
- * $Id: Stg.h,v 1.16 1999/07/06 09:19:47 sof Exp $
+ * $Id: Stg.h,v 1.17 1999/07/06 09:42:39 sof Exp $
*
* (c) The GHC Team, 1998-1999
*
#include "TailCalls.h"
/* RTS public interface */
-#ifndef COMPILING_RTS
#include "RtsAPI.h"
-#endif
/* these are all ANSI C headers */
#include <stdlib.h>
/* ----------------------------------------------------------------------------
- * $Id: RtsAPI.c,v 1.7 1999/05/21 14:46:19 sof Exp $
+ * $Id: RtsAPI.c,v 1.8 1999/07/06 09:42:38 sof Exp $
*
* (c) The GHC Team, 1998-1999
*
#include "Rts.h"
#include "Storage.h"
#include "RtsAPI.h"
+#include "SchedAPI.h"
#include "RtsFlags.h"
#include "RtsUtils.h"