diff options
author | Guido van Rossum <guido@python.org> | 2004-10-09 17:43:03 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2004-10-09 17:43:03 +0000 |
commit | 0662a29c1ddc85908dfc70648771a014f22ef35a (patch) | |
tree | 5c7eda87bbaf9372e0a7aade11adf9d5b6c788c6 /Modules | |
parent | a152f721894b8063360b9c4ffbb6c631bf50a72c (diff) | |
download | cpython-git-0662a29c1ddc85908dfc70648771a014f22ef35a.tar.gz |
Make it ANSI C again.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/readline.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/readline.c b/Modules/readline.c index fd6f95cedd..1731d6939f 100644 --- a/Modules/readline.c +++ b/Modules/readline.c @@ -655,15 +655,15 @@ onintr(int sig) static char * call_readline(FILE *sys_stdin, FILE *sys_stdout, char *prompt) { + size_t n; + char *p, *q; + PyOS_sighandler_t old_inthandler; #ifdef SAVE_LOCALE char *saved_locale = strdup(setlocale(LC_CTYPE, NULL)); if (!saved_locale) Py_FatalError("not enough memory to save locale"); setlocale(LC_CTYPE, ""); #endif - size_t n; - char *p, *q; - PyOS_sighandler_t old_inthandler; old_inthandler = PyOS_setsig(SIGINT, onintr); if (setjmp(jbuf)) { |