Keep C main separate from rts lib and link it in for standalone progs
[ghc-hetmet.git] / rts / RtsMain.h
diff --git a/rts/RtsMain.h b/rts/RtsMain.h
new file mode 100644 (file)
index 0000000..7810f6f
--- /dev/null
@@ -0,0 +1,18 @@
+/* -----------------------------------------------------------------------------
+ *
+ * (c) The GHC Team, 2009
+ *
+ * Entry point for standalone Haskell programs.
+ *
+ * ---------------------------------------------------------------------------*/
+
+#ifndef RTSMAIN_H
+#define RTSMAIN_H
+
+/* -----------------------------------------------------------------------------
+ * The entry point for Haskell programs that use a Haskell main function
+ * -------------------------------------------------------------------------- */
+
+extern int hs_main(int argc, char *argv[], void (*main_init)(void), StgClosure *main_closure);
+
+#endif /* RTSMAIN_H */