]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Explicitly call rl_initialize().
authorGuido van Rossum <guido@python.org>
Fri, 13 Sep 1996 04:09:26 +0000 (04:09 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 13 Sep 1996 04:09:26 +0000 (04:09 +0000)
Set rl_readline_name to python.
Move extern decls to more logical point.

Parser/myreadline.c

index 75a43ab9dd0b4f863bd4faa5bce21aae7eee1b88..556caac2c4961d26f44161c1963aca870ee212d2 100644 (file)
@@ -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++;
        }