Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
0bc253db
Commit
0bc253db
authored
Sep 13, 1996
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Explicitly call rl_initialize().
Set rl_readline_name to python. Move extern decls to more logical point.
parent
24048580
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
Parser/myreadline.c
Parser/myreadline.c
+5
-1
No files found.
Parser/myreadline.c
View file @
0bc253db
...
@@ -45,6 +45,9 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
...
@@ -45,6 +45,9 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#ifdef WITH_READLINE
#ifdef WITH_READLINE
extern
char
*
readline
();
extern
char
*
readline
();
extern
int
rl_initialize
();
extern
int
rl_insert
();
extern
char
*
rl_readline_name
;
#include <setjmp.h>
#include <setjmp.h>
#include <signal.h>
#include <signal.h>
...
@@ -105,7 +108,8 @@ PyOS_ReadlineInit()
...
@@ -105,7 +108,8 @@ PyOS_ReadlineInit()
static
int
been_here
;
static
int
been_here
;
if
(
!
been_here
)
{
if
(
!
been_here
)
{
/* Force rebind of TAB to insert-tab */
/* Force rebind of TAB to insert-tab */
extern
int
rl_insert
();
rl_readline_name
=
"python"
;
rl_initialize
();
rl_bind_key
(
'\t'
,
rl_insert
);
rl_bind_key
(
'\t'
,
rl_insert
);
been_here
++
;
been_here
++
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment