Staging
v0.5.1
https://github.com/python/cpython
Revision 93c91ac8f67ef0819ddacdcca12ef0ae88e5802e authored by Ned Deily on 14 April 2018, 14:56:17 UTC, committed by GitHub on 14 April 2018, 14:56:17 UTC
1 parent ee8e4b6
Raw File
Tip revision: 93c91ac8f67ef0819ddacdcca12ef0ae88e5802e authored by Ned Deily on 14 April 2018, 14:56:17 UTC
[2.7] Fix errant NEWS item: bpo-19019 -> bpo-17128 (GH-6470)
Tip revision: 93c91ac
python.c
/* Minimal main program -- everything is loaded from the library */

#include "Python.h"

#ifdef __FreeBSD__
#include <fenv.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__
	fedisableexcept(FE_OVERFLOW);
#endif
	return Py_Main(argc, argv);
}
back to top