Staging
v0.5.1
https://github.com/python/cpython
Revision bfc5ccd5a10c86c418a786eab034c6ddde62794f authored by Martin v. Löwis on 06 November 2008, 19:46:46 UTC, committed by Martin v. Löwis on 06 November 2008, 19:46:46 UTC
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r67125 | martin.v.loewis | 2008-11-06 20:46:03 +0100 (Do, 06 Nov 2008) | 2 lines

  Stop including fake manifest file in DLLs directory.
........
1 parent e55ab5e
Raw File
Tip revision: bfc5ccd5a10c86c418a786eab034c6ddde62794f authored by Martin v. Löwis on 06 November 2008, 19:46:46 UTC
Merged revisions 67125 via svnmerge from
Tip revision: bfc5ccd
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