Mercurial > cpython-lru_cache-weakref
diff Include/pythonrun.h @ 14636:0c303a22d9a4 legacy-trunk
Add typedef PyOS_sighandler_t and prototypes for PyOS_getsig() and
PyOS_setsig().
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Sat, 16 Sep 2000 16:31:31 +0000 |
| parents | 6f6f965c5e2d |
| children | e17d8cd09689 |
line wrap: on
line diff
--- a/Include/pythonrun.h Sat Sep 16 16:30:48 2000 +0000 +++ b/Include/pythonrun.h Sat Sep 16 16:31:31 2000 +0000 @@ -98,6 +98,12 @@ DL_IMPORT(int) PyOS_CheckStack(void); #endif +/* Signals */ +typedef void (*PyOS_sighandler_t)(int); +DL_IMPORT(PyOS_sighandler_t) PyOS_getsig(int); +DL_IMPORT(PyOS_sighandler_t) PyOS_setsig(int, PyOS_sighandler_t); + + #ifdef __cplusplus } #endif
