mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 22:02:27 +00:00
python-3.6.zip added from Github
README.cosmo contains the necessary links.
This commit is contained in:
parent
75fc601ff5
commit
0c4c56ff39
4219 changed files with 1968626 additions and 0 deletions
23
third_party/python/Python/pyfpe.c
vendored
Normal file
23
third_party/python/Python/pyfpe.c
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
#include "pyconfig.h"
|
||||
#include "pyfpe.h"
|
||||
/*
|
||||
* The signal handler for SIGFPE is actually declared in an external
|
||||
* module fpectl, or as preferred by the user. These variable
|
||||
* definitions are required in order to compile Python without
|
||||
* getting missing externals, but to actually handle SIGFPE requires
|
||||
* defining a handler and enabling generation of SIGFPE.
|
||||
*/
|
||||
|
||||
#ifdef WANT_SIGFPE_HANDLER
|
||||
jmp_buf PyFPE_jbuf;
|
||||
int PyFPE_counter = 0;
|
||||
#endif
|
||||
|
||||
/* Have this outside the above #ifdef, since some picky ANSI compilers issue a
|
||||
warning when compiling an empty file. */
|
||||
|
||||
double
|
||||
PyFPE_dummy(void *dummy)
|
||||
{
|
||||
return 1.0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue