Staging
v0.5.1
https://github.com/python/cpython
Revision ab3b0ade505ce07a3d5ec4fbc991a154242732e6 authored by Jeremy Kloth on 21 June 2017, 19:14:53 UTC, committed by Victor Stinner on 21 June 2017, 19:14:53 UTC
* Silence warnings caused by duplicated defines from Modules\expat\winconfig.h
* Add WIN32 define to VS9.0 project files to match MSBuild project files.
1 parent 2ada64d
Raw File
Tip revision: ab3b0ade505ce07a3d5ec4fbc991a154242732e6 authored by Jeremy Kloth on 21 June 2017, 19:14:53 UTC
bpo-29591: Update VS project files (#2310)
Tip revision: ab3b0ad
sigcheck.c

/* Sigcheck is similar to intrcheck() but sets an exception when an
   interrupt occurs.  It can't be in the intrcheck.c file since that
   file (and the whole directory it is in) doesn't know about objects
   or exceptions.  It can't be in errors.c because it can be
   overridden (at link time) by a more powerful version implemented in
   signalmodule.c. */

#include "Python.h"

/* ARGSUSED */
int
PyErr_CheckSignals(void)
{
	if (!PyOS_InterruptOccurred())
		return 0;
	PyErr_SetNone(PyExc_KeyboardInterrupt);
	return -1;
}
back to top