source: vendor/python/2.5/Python/pyfpe.c

Last change on this file was 3225, checked in by bird, 18 years ago

Python 2.5

File size: 623 bytes
Line 
1#include "pyconfig.h"
2#include "pyfpe.h"
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
12jmp_buf PyFPE_jbuf;
13int PyFPE_counter = 0;
14#endif
15
16/* Have this outside the above #ifdef, since some picky ANSI compilers issue a
17 warning when compiling an empty file. */
18
19double
20PyFPE_dummy(void *dummy)
21{
22 return 1.0;
23}
Note: See TracBrowser for help on using the repository browser.