Staging
v0.5.1
https://github.com/python/cpython
Revision df0784335c571dc10489cac4d01cc242d73f9014 authored by Bob Ippolito on 28 March 2005, 23:23:34 UTC, committed by Bob Ippolito on 28 March 2005, 23:23:34 UTC
POSIX is enabled.  This prevents the toolbox glue, all of Carbon,
and various other non-POSIX features from compiling.  The POSIX
symbols are  still used by default, so turning off the #define
doesn't hurt.

Additionally, linker flags have changed for Darwin 8, and are
different for Darwin 8/gcc4 (default) and Darwin 8/gcc3.3.

Approved by Anthony
1 parent 2513acf
Raw File
Tip revision: df0784335c571dc10489cac4d01cc242d73f9014 authored by Bob Ippolito on 28 March 2005, 23:23:34 UTC
patch [1171767] - Darwin 8's headers disable functionality when
Tip revision: df07843
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