diff options
author | Guido van Rossum <guido@python.org> | 1996-09-13 04:09:26 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-09-13 04:09:26 (GMT) |
commit | 0bc253dba7e0fcb3efcd96b0f5b3d9e6502bffb4 (patch) | |
tree | 0a021f088b709d5c988e60818e43effc31597ff6 /Parser | |
parent | 24048580ca44130cf6250abded6d9592c7befaa8 (diff) | |
download | cpython-0bc253dba7e0fcb3efcd96b0f5b3d9e6502bffb4.zip cpython-0bc253dba7e0fcb3efcd96b0f5b3d9e6502bffb4.tar.gz cpython-0bc253dba7e0fcb3efcd96b0f5b3d9e6502bffb4.tar.bz2 |
Explicitly call rl_initialize().
Set rl_readline_name to python.
Move extern decls to more logical point.
Diffstat (limited to 'Parser')
-rw-r--r-- | Parser/myreadline.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Parser/myreadline.c b/Parser/myreadline.c index 75a43ab..556caac 100644 --- a/Parser/myreadline.c +++ b/Parser/myreadline.c @@ -45,6 +45,9 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #ifdef WITH_READLINE extern char *readline(); +extern int rl_initialize(); +extern int rl_insert(); +extern char *rl_readline_name; #include <setjmp.h> #include <signal.h> @@ -105,7 +108,8 @@ PyOS_ReadlineInit() static int been_here; if (!been_here) { /* Force rebind of TAB to insert-tab */ - extern int rl_insert(); + rl_readline_name = "python"; + rl_initialize(); rl_bind_key('\t', rl_insert); been_here++; } |