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