Mercurial > cpython-lru_cache-weakref
diff Modules/readline.c @ 33255:3fbd2d1ca5bb legacy-trunk
SF #1015517, get readline to compile with older compilers
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Wed, 25 Aug 2004 01:20:18 +0000 |
| parents | 69700687e30f |
| children | 1701dae6474e |
line wrap: on
line diff
--- a/Modules/readline.c Tue Aug 24 22:24:08 2004 +0000 +++ b/Modules/readline.c Wed Aug 25 01:20:18 2004 +0000 @@ -823,15 +823,16 @@ 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;
