Staging
v0.5.1
https://github.com/python/cpython
Revision c9081b390d1192968edab7ecc39663834cef44d8 authored by Mark Dickinson on 23 February 2010, 13:16:55 UTC, committed by Mark Dickinson on 23 February 2010, 13:16:55 UTC
........
  r78372 | mark.dickinson | 2010-02-23 12:53:52 +0000 (Tue, 23 Feb 2010) | 1 line

  Make global variable overflowok into a keyword argument;  this fixes a failure when running ./python -m test.regrtest -R 3:2: test_format
........
  r78373 | mark.dickinson | 2010-02-23 13:06:50 +0000 (Tue, 23 Feb 2010) | 1 line

  Fix spacing nit.  Thanks Eric Smith for the public humiliation.
........
1 parent 365bc6c
Raw File
Tip revision: c9081b390d1192968edab7ecc39663834cef44d8 authored by Mark Dickinson on 23 February 2010, 13:16:55 UTC
Blocked revisions 78372-78373 via svnmerge
Tip revision: c9081b3
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