Staging
v0.5.1
https://github.com/python/cpython
Revision e977fae6b8c7423cb5dd7caaeff7e84dff72f4a3 authored by R. David Murray on 21 November 2010, 16:59:54 UTC, committed by R. David Murray on 21 November 2010, 16:59:54 UTC
........
  r86642 | r.david.murray | 2010-11-21 11:53:48 -0500 (Sun, 21 Nov 2010) | 10 lines

  Fix TestBytesGeneratorIdempotent tests and a couple bugs they revealed.

  The tests that were failing on (some) windows machines, where the
  msg_XX.txt files used native \r\n lineseps are now also run on machines
  that use \n natively, and conversely the \n tests are run on Windows.
  The failing tests revealed one place where linesep needed to be added
  to a flatten call in generator.  There was also another that the tests
  didn't catch, so I added a test for that case as well.
........
1 parent 19f2aeb
Raw File
Tip revision: e977fae6b8c7423cb5dd7caaeff7e84dff72f4a3 authored by R. David Murray on 21 November 2010, 16:59:54 UTC
Blocked revisions 86642 via svnmerge
Tip revision: e977fae
pyfpe.c
#include "pyconfig.h"
#include "pyfpe.h"
/* 
 * The signal handler for SIGFPE is actually declared in an external
 * module fpectl, or as preferred by the user.  These variable
 * definitions are required in order to compile Python without
 * getting missing externals, but to actually handle SIGFPE requires
 * defining a handler and enabling generation of SIGFPE.
 */

#ifdef WANT_SIGFPE_HANDLER
jmp_buf PyFPE_jbuf;
int PyFPE_counter = 0;
#endif

/* Have this outside the above #ifdef, since some picky ANSI compilers issue a 
   warning when compiling an empty file. */

double
PyFPE_dummy(void *dummy)
{
	return 1.0;
}
back to top