Guido van Rossum | 0ae748d | 1997-02-14 22:58:07 +0000 | [diff] [blame] | 1 | #include "config.h" |
| 2 | #include "pyfpe.h" |
Guido van Rossum | 0ae748d | 1997-02-14 22:58:07 +0000 | [diff] [blame] | 3 | /* |
| 4 | * The signal handler for SIGFPE is actually declared in an external |
| 5 | * module fpectl, or as preferred by the user. These variable |
| 6 | * definitions are required in order to compile Python without |
| 7 | * getting missing externals, but to actually handle SIGFPE requires |
| 8 | * defining a handler and enabling generation of SIGFPE. |
| 9 | */ |
| 10 | |
| 11 | #ifdef WANT_SIGFPE_HANDLER |
| 12 | jmp_buf PyFPE_jbuf; |
| 13 | int PyFPE_counter = 0; |
Guido van Rossum | e85da65 | 1997-10-20 23:50:01 +0000 | [diff] [blame^] | 14 | double PyFPE_dummy(void *dummy){ return 1.0; } |
Guido van Rossum | 0ae748d | 1997-02-14 22:58:07 +0000 | [diff] [blame] | 15 | #endif |