1 /****************************************************************
2 Copyright (C) 1997 Lucent Technologies
3 All Rights Reserved
4 
5 Permission to use, copy, modify, and distribute this software and
6 its documentation for any purpose and without fee is hereby
7 granted, provided that the above copyright notice appear in all
8 copies and that both that the copyright notice and this
9 permission notice and warranty disclaimer appear in supporting
10 documentation, and that the name of Lucent or any of its entities
11 not be used in advertising or publicity pertaining to
12 distribution of the software without specific, written prior
13 permission.
14 
15 LUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
16 INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
17 IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY
18 SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
19 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
20 IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
21 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
22 THIS SOFTWARE.
23 ****************************************************************/
24 
25 #include "signal.h"
26 #include "setjmp.h"
27 
28 /* Separately compiled because of stack check problems with SVS C */
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 jmp_buf fpe_jmpbuf_ASL;
35 
36 #ifndef Sig_ret_type
37 #define Sig_ret_type void
38 #endif
39  Sig_ret_type
40 #ifdef KR_headers
fpecatch_ASL(n)41 fpecatch_ASL(n) int n;
42 #else
43 fpecatch_ASL(int n)
44 #endif
45 {
46 	n = n; /* shut up warning of non-use */
47 	longjmp(fpe_jmpbuf_ASL, 1);
48 	}
49 
50 #ifdef __cplusplus
51 }
52 #endif
53