1998-02-01 02:37:08 +01:00
|
|
|
/* You may need to adjust the definition of signal1 to supply a */
|
|
|
|
/* cast to the correct argument type. This detail is system- and */
|
|
|
|
/* compiler-dependent. The #define below assumes signal.h declares */
|
|
|
|
/* type SIG_PF for the signal function's second argument. */
|
|
|
|
|
1999-03-17 09:21:44 +01:00
|
|
|
/* For some C++ compilers, "#define Sigarg_t ..." may be appropriate. */
|
|
|
|
|
1998-02-01 02:37:08 +01:00
|
|
|
#include <signal.h>
|
|
|
|
|
|
|
|
#ifndef Sigret_t
|
|
|
|
#define Sigret_t void
|
|
|
|
#endif
|
|
|
|
#ifndef Sigarg_t
|
|
|
|
#define Sigarg_t int
|
2002-06-01 14:38:32 +02:00
|
|
|
#endif /*Sigarg_t */
|
1998-02-01 02:37:08 +01:00
|
|
|
|
2002-06-01 14:38:32 +02:00
|
|
|
#ifdef USE_SIG_PF /* compile with -DUSE_SIG_PF under IRIX */
|
1998-02-01 02:37:08 +01:00
|
|
|
#define sig_pf SIG_PF
|
|
|
|
#else
|
2002-06-01 14:38:32 +02:00
|
|
|
typedef Sigret_t (*sig_pf) (Sigarg_t);
|
1998-02-01 02:37:08 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#define signal1(a,b) signal(a,(sig_pf)b)
|
1998-05-19 12:52:03 +02:00
|
|
|
|
g2c.hin, [...]: Kill VOID, Void and Int.
* g2c.hin, libF77/d_cnjg.c, libF77/main.c, libF77/r_cnjg.c,
libF77/s_cat.c, libF77/s_paus.c, libF77/s_rnge.c, libF77/setarg.c,
libF77/setsig.c, libF77/signal1.h0, libI77/dfe.c, libI77/due.c,
libI77/err.c, libI77/fio.h, libI77/fmt.c, libI77/iio.c,
libI77/ilnw.c, libI77/lread.c, libI77/lwrite.c, libI77/rsfe.c,
libI77/rsli.c, libI77/rsne.c, libI77/sfe.c, libI77/sue.c,
libI77/util.c, libI77/wrtfmt.c, libI77/wsfe.c, libI77/wsle.c,
libI77/xwsne.c, libU77/date_.c: Kill VOID, Void and Int.
From-SVN: r54134
2002-06-01 03:58:10 +02:00
|
|
|
#define Sigarg int n
|
1998-05-19 12:52:03 +02:00
|
|
|
#define Use_Sigarg n = n /* shut up compiler warning */
|