X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Finterpreter%2Fconnect.h;h=a93a265543b0e381667f6b1dc76d65e1d1cf022b;hb=525898a970c625753c33490318762c2b4c2770a9;hp=430e130b29212a631976e7f1850f80f2be62d98c;hpb=22bc4dd169cc1e4d22bf8bcacebb95dc621ef808;p=ghc-hetmet.git diff --git a/ghc/interpreter/connect.h b/ghc/interpreter/connect.h index 430e130..a93a265 100644 --- a/ghc/interpreter/connect.h +++ b/ghc/interpreter/connect.h @@ -9,8 +9,8 @@ * included in the distribution. * * $RCSfile: connect.h,v $ - * $Revision: 1.41 $ - * $Date: 2000/05/10 09:00:20 $ + * $Revision: 1.44 $ + * $Date: 2000/06/28 10:42:17 $ * ------------------------------------------------------------------------*/ /* -------------------------------------------------------------------------- @@ -362,7 +362,7 @@ extern Void machdep ( Int ); extern Void liftControl ( Int ); extern Void substitution ( Int ); extern Void typeChecker ( Int ); -extern Void interface ( Int ); +extern Void interfayce ( Int ); extern Void storage ( Int ); @@ -451,6 +451,7 @@ extern Void foreignImport ( Cell,Text,Pair,Cell,Cell ); extern Void foreignExport ( Cell,Text,Cell,Cell,Cell ); extern Void implementForeignImport ( Name ); +extern Text makeTypeDescrText ( Type ); extern Void implementForeignExport ( Name ); extern List foreignExports; /* foreign export declarations */ @@ -565,6 +566,9 @@ extern HugsBreakAction setBreakAction ( HugsBreakAction ); to get the signal mask to a sane state each time. */ #include + +#if !defined(mingw32_TARGET_OS) + #define setHandler(bh) { sigset_t mask; \ signal(SIGINT,bh); \ sigemptyset(&mask); \ @@ -572,6 +576,13 @@ extern HugsBreakAction setBreakAction ( HugsBreakAction ); sigprocmask(SIG_UNBLOCK, &mask, NULL); \ } +#else + +#define setHandler(bh) { void* old_hdlr = signal(SIGINT,bh);\ + if (old_hdlr == SIG_ERR) internal("setHandler"); \ + } + +#endif /* !defined(mingw32_TARGET_OS) */ /*--------------------------------------------------------------------------- * Environment variables and the registry