Mercurial > cpython-lru_cache-weakref
diff Python/sigcheck.c @ 5373:5880384d7c71 legacy-trunk
Quickly renamed the remaining files -- this directory is done.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 29 Apr 1997 20:08:16 +0000 |
| parents | 65d2d8e67da3 |
| children | 916fb024ce94 |
line wrap: on
line diff
--- a/Python/sigcheck.c Tue Apr 29 18:33:38 1997 +0000 +++ b/Python/sigcheck.c Tue Apr 29 20:08:16 1997 +0000 @@ -36,15 +36,14 @@ overridden (at link time) by a more powerful version implemented in signalmodule.c. */ -#include "allobjects.h" -#include "intrcheck.h" +#include "Python.h" /* ARGSUSED */ int -sigcheck() +PyErr_CheckSignals() { - if (!intrcheck()) + if (!PyOS_InterruptOccurred()) return 0; - err_set(KeyboardInterrupt); + PyErr_SetNone(PyExc_KeyboardInterrupt); return -1; }
