Staging
v0.5.1
https://github.com/python/cpython
Revision f172637bc7198e626fca2937e200170fbac64413 authored by Benjamin Peterson on 05 May 2009, 21:11:54 UTC, committed by Benjamin Peterson on 05 May 2009, 21:11:54 UTC
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72357 | benjamin.peterson | 2009-05-05 16:09:21 -0500 (Tue, 05 May 2009) | 4 lines

  fix running test_capi with -R ::

  Also, fix a refleak in the test that was preventing running. :)
........
1 parent 00cfc37
Raw File
Tip revision: f172637bc7198e626fca2937e200170fbac64413 authored by Benjamin Peterson on 05 May 2009, 21:11:54 UTC
Merged revisions 72357 via svnmerge from
Tip revision: f172637
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