]> granicus.if.org Git - python/commitdiff
Add typedef PyOS_sighandler_t and prototypes for PyOS_getsig() and
authorGuido van Rossum <guido@python.org>
Sat, 16 Sep 2000 16:31:31 +0000 (16:31 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 16 Sep 2000 16:31:31 +0000 (16:31 +0000)
PyOS_setsig().

Include/pythonrun.h

index 97d6f4f5fdf493cfba23b19f946e655351c4c73f..e8f4f96cce040f0e7a21ee88301f520b461ddff1 100644 (file)
@@ -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