From: Neal Norwitz Date: Wed, 25 Aug 2004 01:20:18 +0000 (+0000) Subject: SF #1015517, get readline to compile with older compilers X-Git-Tag: v2.4a3~134 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1fa040ba73db700debd9f5079fa2083a0937f8b6;p=python SF #1015517, get readline to compile with older compilers --- diff --git a/Modules/readline.c b/Modules/readline.c index 67ae04db33..a62244dda4 100644 --- a/Modules/readline.c +++ b/Modules/readline.c @@ -823,15 +823,16 @@ readline_until_enter_or_signal(char *prompt, int *signal) static char * call_readline(FILE *sys_stdin, FILE *sys_stdout, char *prompt) { + size_t n; + char *p, *q; + int signal; + #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; - int signal; rl_event_hook = PyOS_InputHook;