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