diff options
author | Ori Bernstein <ori@eigenstate.org> | 2021-06-14 00:00:37 +0000 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2021-06-14 00:00:37 +0000 |
commit | a73a964e51247ed169d322c725a3a18859f109a3 (patch) | |
tree | 3f752d117274d444bda44e85609aeac1acf313f3 /sys/src/cmd/python/Modules/python.c | |
parent | e64efe273fcb921a61bf27d33b230c4e64fcd425 (diff) |
python, hg: tow outside the environment.
they've served us well, and can ride off into the sunset.
Diffstat (limited to 'sys/src/cmd/python/Modules/python.c')
-rw-r--r-- | sys/src/cmd/python/Modules/python.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/sys/src/cmd/python/Modules/python.c b/sys/src/cmd/python/Modules/python.c deleted file mode 100644 index 2739b8b11..000000000 --- a/sys/src/cmd/python/Modules/python.c +++ /dev/null @@ -1,24 +0,0 @@ -/* Minimal main program -- everything is loaded from the library */ - -#include "Python.h" - -#ifdef __FreeBSD__ -#include <floatingpoint.h> -#endif - -int -main(int argc, char **argv) -{ - /* 754 requires that FP exceptions run in "no stop" mode by default, - * and until C vendors implement C99's ways to control FP exceptions, - * Python requires non-stop mode. Alas, some platforms enable FP - * exceptions by default. Here we disable them. - */ -#ifdef __FreeBSD__ - fp_except_t m; - - m = fpgetmask(); - fpsetmask(m & ~FP_X_OFL); -#endif - return Py_Main(argc, argv); -} |