Add typedef PyOS_sighandler_t and prototypes for PyOS_getsig() and

PyOS_setsig().
This commit is contained in:
Guido van Rossum 2000-09-16 16:31:31 +00:00
parent c96ec6ef2b
commit c7247ce269

View 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