diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2004-08-25 01:20:18 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2004-08-25 01:20:18 (GMT) |
commit | 1fa040ba73db700debd9f5079fa2083a0937f8b6 (patch) | |
tree | 41155f02496e8eed73dfdb7360b5c3b710ec1d66 /Modules/readline.c | |
parent | eb619bb80b651a99abd1fe016d0ac024cbd9677a (diff) | |
download | cpython-1fa040ba73db700debd9f5079fa2083a0937f8b6.zip cpython-1fa040ba73db700debd9f5079fa2083a0937f8b6.tar.gz cpython-1fa040ba73db700debd9f5079fa2083a0937f8b6.tar.bz2 |
SF #1015517, get readline to compile with older compilers
Diffstat (limited to 'Modules/readline.c')
-rw-r--r-- | Modules/readline.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Modules/readline.c b/Modules/readline.c index 67ae04d..a62244d 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; |