diff options
author | Tim Peters <tim.peters@gmail.com> | 2000-07-23 21:18:09 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2000-07-23 21:18:09 (GMT) |
commit | 4f1b2081e9dde910048ef679f5afe252023a4031 (patch) | |
tree | d0329ad8a22d260b10e05c31ca6291eb26f70b27 /Modules/readline.c | |
parent | 56055a474955811fd672e406d0a175349879759d (diff) | |
download | cpython-4f1b2081e9dde910048ef679f5afe252023a4031.zip cpython-4f1b2081e9dde910048ef679f5afe252023a4031.tar.gz cpython-4f1b2081e9dde910048ef679f5afe252023a4031.tar.bz2 |
Removed all instances of RETSIGTYPE from the source code: signal
handlers "return void", according to ANSI C.
Removed the new Py_RETURN_FROM_SIGNAL_HANDLER macro.
Left RETSIGTYPE in the config stuff, because it's not clear to
me that others aren't relying on it (e.g., extension modules).
Diffstat (limited to 'Modules/readline.c')
-rw-r--r-- | Modules/readline.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Modules/readline.c b/Modules/readline.c index 47644c4..0fd4c28 100644 --- a/Modules/readline.c +++ b/Modules/readline.c @@ -427,13 +427,10 @@ setup_readline(void) static jmp_buf jbuf; /* ARGSUSED */ -static RETSIGTYPE +static void onintr(int sig) { longjmp(jbuf, 1); -#if RETSIGTYPE != void - return 0; -#endif } @@ -444,7 +441,7 @@ call_readline(char *prompt) { size_t n; char *p, *q; - RETSIGTYPE (*old_inthandler)(int); + void (*old_inthandler)(int); old_inthandler = signal(SIGINT, onintr); if (setjmp(jbuf)) { #ifdef HAVE_SIGRELSE |