From: Guido van Rossum Date: Sat, 9 Oct 2004 17:43:03 +0000 (+0000) Subject: Make it ANSI C again. X-Git-Tag: v2.3.5c1~101 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0662a29c1ddc85908dfc70648771a014f22ef35a;p=thirdparty%2FPython%2Fcpython.git Make it ANSI C again. --- diff --git a/Modules/readline.c b/Modules/readline.c index fd6f95cedd6d..1731d6939f06 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)) {