Staging
v0.5.1
https://github.com/python/cpython
Revision afd43b55124e332fe0a8e495bef551ba7e49a69f authored by Michael W. Hudson on 17 July 2003, 16:26:58 UTC, committed by Michael W. Hudson on 17 July 2003, 16:26:58 UTC
PyOS_InputHook and PyOS_ReadlineFunctionPointer).

The inaccuracies were causing problems in framework builds on Mac OS X.
1 parent 7a6b4f0
Raw File
Tip revision: afd43b55124e332fe0a8e495bef551ba7e49a69f authored by Michael W. Hudson on 17 July 2003, 16:26:58 UTC
Remove inaccurate (and it turns out, entirely superfluous) declarations of
Tip revision: afd43b5
python.c
/* 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);
}
back to top