summaryrefslogtreecommitdiff
path: root/Include
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-09-16 16:31:31 +0000
committerGuido van Rossum <guido@python.org>2000-09-16 16:31:31 +0000
commitabd9e63f2e57ba354ec2b0e23544e0ae73e5ceaf (patch)
tree003e4271bf1769723e19f4d8c712884f700384ed /Include
parent5fd1b701c08eb05f2196ed38fdf1c189fe3798df (diff)
downloadcpython-abd9e63f2e57ba354ec2b0e23544e0ae73e5ceaf.tar.gz
Add typedef PyOS_sighandler_t and prototypes for PyOS_getsig() and
PyOS_setsig().
Diffstat (limited to 'Include')
-rw-r--r--Include/pythonrun.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/pythonrun.h b/Include/pythonrun.h
index 97d6f4f5fd..e8f4f96cce 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