]> git.proxmox.com Git - mirror_edk2.git/blame - AppPkg/Applications/Python/Python-2.7.2/Python/pyfpe.c
EmbeddedPkg: Extend NvVarStoreFormattedLib LIBRARY_CLASS
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.2 / Python / pyfpe.c
CommitLineData
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
12jmp_buf PyFPE_jbuf;\r
13int 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
19double\r
20PyFPE_dummy(void *dummy)\r
21{\r
22 return 1.0;\r
23}\r