| 1 | n/a | #include "pyconfig.h" |
|---|
| 2 | n/a | #include "pyfpe.h" |
|---|
| 3 | n/a | /* |
|---|
| 4 | n/a | * The signal handler for SIGFPE is actually declared in an external |
|---|
| 5 | n/a | * module fpectl, or as preferred by the user. These variable |
|---|
| 6 | n/a | * definitions are required in order to compile Python without |
|---|
| 7 | n/a | * getting missing externals, but to actually handle SIGFPE requires |
|---|
| 8 | n/a | * defining a handler and enabling generation of SIGFPE. |
|---|
| 9 | n/a | */ |
|---|
| 10 | n/a | |
|---|
| 11 | n/a | #ifdef WANT_SIGFPE_HANDLER |
|---|
| 12 | n/a | jmp_buf PyFPE_jbuf; |
|---|
| 13 | n/a | int PyFPE_counter = 0; |
|---|
| 14 | n/a | #endif |
|---|
| 15 | n/a | |
|---|
| 16 | n/a | /* Have this outside the above #ifdef, since some picky ANSI compilers issue a |
|---|
| 17 | n/a | warning when compiling an empty file. */ |
|---|
| 18 | n/a | |
|---|
| 19 | n/a | double |
|---|
| 20 | n/a | PyFPE_dummy(void *dummy) |
|---|
| 21 | n/a | { |
|---|
| 22 | n/a | return 1.0; |
|---|
| 23 | n/a | } |
|---|