summaryrefslogtreecommitdiffstats
path: root/Modules/readline.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-08-11 18:57:29 (GMT)
committerGuido van Rossum <guido@python.org>1997-08-11 18:57:29 (GMT)
commit44620646fd7666dffa362137c9b69a3c9e18c715 (patch)
treee78b66f15156ceef5da8c14156033b4b9e8b2a36 /Modules/readline.c
parent0357d02eab8c6df2af6abb68603600b8d6a54831 (diff)
downloadcpython-44620646fd7666dffa362137c9b69a3c9e18c715.zip
cpython-44620646fd7666dffa362137c9b69a3c9e18c715.tar.gz
cpython-44620646fd7666dffa362137c9b69a3c9e18c715.tar.bz2
Renamed Py_input_hook to PyOS_InputHook.
Also cleaned out some CR's left by the VC++ editor.
Diffstat (limited to 'Modules/readline.c')
-rw-r--r--Modules/readline.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/readline.c b/Modules/readline.c
index 8927630..a1ba13d 100644
--- a/Modules/readline.c
+++ b/Modules/readline.c
@@ -12,7 +12,7 @@ extern "C" {
#include <signal.h>
/* Routines needed from outside (but not declared in a header file). */
-extern int (*Py_input_hook)();
+extern int (*PyOS_InputHook)();
extern char *readline();
extern int rl_initialize();
extern int rl_insert();
@@ -98,7 +98,7 @@ PyOS_GnuReadline(prompt)
signal(SIGINT, old_inthandler);
return NULL;
}
- rl_event_hook = Py_input_hook;
+ rl_event_hook = PyOS_InputHook;
p = readline(prompt);
signal(SIGINT, old_inthandler);
if (p == NULL) {