From 4078a5cf87fbc8acdde47d389555cc2f9be5581f Mon Sep 17 00:00:00 2001 From: simonmar Date: Mon, 31 Jan 2005 12:55:51 +0000 Subject: [PATCH] [project @ 2005-01-31 12:55:50 by simonmar] Move signal prototypes into RtsExternal.h --- ghc/includes/RtsExternal.h | 8 +++++++- ghc/includes/Signals.h | 19 ++++++------------- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/ghc/includes/RtsExternal.h b/ghc/includes/RtsExternal.h index cc8b3ba..107862b 100644 --- a/ghc/includes/RtsExternal.h +++ b/ghc/includes/RtsExternal.h @@ -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 -------------------------------------------------------------------------- */ diff --git a/ghc/includes/Signals.h b/ghc/includes/Signals.h index bd24e5a..cacb1db 100644 --- a/ghc/includes/Signals.h +++ b/ghc/includes/Signals.h @@ -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 - -- 1.7.10.4