summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-09-16 16:31:31 (GMT)
committerGuido van Rossum <guido@python.org>2000-09-16 16:31:31 (GMT)
commitc7247ce2691baeb1ff9e2fad144c84825591642c (patch)
treefab17ba8600c0fa559e6491d62be2c29ed63239f
parentc96ec6ef2b81ab20f52edb223f31601578e73cb4 (diff)
downloadcpython-c7247ce2691baeb1ff9e2fad144c84825591642c.zip
cpython-c7247ce2691baeb1ff9e2fad144c84825591642c.tar.gz
cpython-c7247ce2691baeb1ff9e2fad144c84825591642c.tar.bz2
Add typedef PyOS_sighandler_t and prototypes for PyOS_getsig() and
PyOS_setsig().
-rw-r--r--Include/pythonrun.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/pythonrun.h b/Include/pythonrun.h
index 97d6f4f..e8f4f96 100644
--- a/Include/pythonrun.h
+++ b/Include/pythonrun.h
@@ -98,6 +98,12 @@ extern DL_IMPORT(char) *(*PyOS_ReadlineFunctionPointer)(char *);
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