]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Make it ANSI C again.
authorGuido van Rossum <guido@python.org>
Sat, 9 Oct 2004 17:43:03 +0000 (17:43 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 9 Oct 2004 17:43:03 +0000 (17:43 +0000)
Modules/readline.c

index fd6f95cedd6d9173fcf58780131accb2340e2dd0..1731d6939f0621ee395f414e3da2e3eb3454dafe 100644 (file)
@@ -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)) {