[project @ 2005-01-31 12:55:50 by simonmar]
authorsimonmar <unknown>
Mon, 31 Jan 2005 12:55:51 +0000 (12:55 +0000)
committersimonmar <unknown>
Mon, 31 Jan 2005 12:55:51 +0000 (12:55 +0000)
Move signal prototypes into RtsExternal.h

ghc/includes/RtsExternal.h
ghc/includes/Signals.h

index cc8b3ba..107862b 100644 (file)
@@ -1,5 +1,5 @@
 /* -----------------------------------------------------------------------------
- * $Id: RtsExternal.h,v 1.7 2005/01/10 18:44:40 wolfgang Exp $
+ * $Id: RtsExternal.h,v 1.8 2005/01/31 12:55:50 simonmar Exp $
  *
  * (c) The GHC Team, 1998-2004
  *
@@ -63,6 +63,12 @@ extern void*  createAdjustor(int cconv, StgStablePtr hptr, StgFunPtr wptr,
                              char *typeString);
 extern void   freeHaskellFunctionPtr(void* ptr);
 
+#if defined(mingw32_HOST_OS)
+extern int stg_InstallConsoleEvent(int action, StgStablePtr *handler);
+#else
+extern int stg_sig_install (int, int, StgStablePtr *, void *);
+#endif
+
 /* -----------------------------------------------------------------------------
    Storage manager stuff exported
    -------------------------------------------------------------------------- */
index bd24e5a..cacb1db 100644 (file)
@@ -1,6 +1,6 @@
 /* -----------------------------------------------------------------------------
  *
- * (c) The GHC Team, 1998-2002
+ * (c) The GHC Team, 1998-2005
  *
  * RTS signal handling 
  *
@@ -9,17 +9,10 @@
 #ifndef SIGNALS_H
 #define SIGNALS_H
 
-#define STG_SIG_DFL  (-1)
-#define STG_SIG_IGN  (-2)
-#define STG_SIG_ERR  (-3)
-#define STG_SIG_HAN  (-4)
-#define STG_SIG_RST  (-5)
-
-#if defined(mingw32_HOST_OS)
-extern int stg_InstallConsoleEvent(int action, StgStablePtr *handler);
-#else
-extern int stg_sig_install (int, int, StgStablePtr *, void *);
-#endif
+#define STG_SIG_DFL   (-1)
+#define STG_SIG_IGN   (-2)
+#define STG_SIG_ERR   (-3)
+#define STG_SIG_HAN   (-4)
+#define STG_SIG_RST   (-5)
 
 #endif // SIGNALS_H
-