ack/util/int/trap.h

28 lines
561 B
C
Raw Permalink Normal View History

1988-06-22 16:57:09 +00:00
/*
Trap handling
*/
2019-03-17 14:42:00 +00:00
#ifndef TRAP_H_
#define TRAP_H_
#include "warn.h"
1988-06-22 16:57:09 +00:00
1994-06-24 11:31:16 +00:00
/* $Id$ */
1988-06-22 16:57:09 +00:00
#define wtrap(wn,tr) (warning(wn), trap(tr))
#define trap(tr) do_trap(tr, __LINE__, __FILE__)
extern int signalled; /* signal nr if trap was due to sig */
extern int must_test; /* must trap on overfl./out of range*/
/* TEST-bit on in EM header word 2 */
2019-03-17 14:42:00 +00:00
/* Execute the specified trap. "nr" represents the signal
* number, "L" is the line number and "F" is the filename
* where the trap occurred.
*/
void do_trap(int nr, int L, char *F);
#endif /* TRAP_H_ */