From: Chris Hanson Date: Tue, 3 May 1994 08:01:16 +0000 (+0000) Subject: Rewrite code that the Sun compiler won't accept. X-Git-Tag: 20090517-FFI~7182 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=5d6b3c1bca2567ab77a0a6838e91870a43800054;p=mit-scheme.git Rewrite code that the Sun compiler won't accept. --- diff --git a/v7/src/microcode/uxsig.c b/v7/src/microcode/uxsig.c index 8dd4d4dbd..8eac58b4e 100644 --- a/v7/src/microcode/uxsig.c +++ b/v7/src/microcode/uxsig.c @@ -1,6 +1,6 @@ /* -*-C-*- -$Id: uxsig.c,v 1.30 1994/02/18 21:14:18 cph Exp $ +$Id: uxsig.c,v 1.31 1994/05/03 08:01:16 cph Exp $ Copyright (c) 1990-94 Massachusetts Institute of Technology @@ -501,16 +501,30 @@ DEFUN_VOID (OS_restartable_exit) stop_signal_default (SIGTSTP); } +/* The following conditionalization would more naturally be expressed + by conditionalizing the code inside the handler, but the Sun + compiler won't accept this conditionalization. */ + +#ifdef HAVE_ITIMER + +static +DEFUN_STD_HANDLER (sighnd_timer, +{ + request_timer_interrupt (); +}) + +#else /* not HAVE_ITIMER */ + static DEFUN_STD_HANDLER (sighnd_timer, { -#ifndef HAVE_ITIMER extern void EXFUN (reschedule_alarm, (void)); reschedule_alarm (); -#endif request_timer_interrupt (); }) +#endif /* not HAVE_ITIMER */ + static DEFUN_STD_HANDLER (sighnd_save_then_terminate, (request_suspend_interrupt ()))