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
aa096359
Commit
aa096359
authored
Jan 24, 2014
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use new readline function types (closes #20374)
parent
69d64059
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
Misc/NEWS
Misc/NEWS
+2
-0
Modules/readline.c
Modules/readline.c
+3
-3
No files found.
Misc/NEWS
View file @
aa096359
...
@@ -38,6 +38,8 @@ Core and Builtins
...
@@ -38,6 +38,8 @@ Core and Builtins
Library
Library
-------
-------
- Issue #20374: Fix build with GNU readline >= 6.3.
- Issue #14548: Make multiprocessing finalizers check pid before
- Issue #14548: Make multiprocessing finalizers check pid before
running to cope with possibility of gc running just after fork.
running to cope with possibility of gc running just after fork.
(Backport from 3.x.)
(Backport from 3.x.)
...
...
Modules/readline.c
View file @
aa096359
...
@@ -911,12 +911,12 @@ setup_readline(void)
...
@@ -911,12 +911,12 @@ setup_readline(void)
rl_bind_key_in_map
(
'\t'
,
rl_complete
,
emacs_meta_keymap
);
rl_bind_key_in_map
(
'\t'
,
rl_complete
,
emacs_meta_keymap
);
rl_bind_key_in_map
(
'\033'
,
rl_complete
,
emacs_meta_keymap
);
rl_bind_key_in_map
(
'\033'
,
rl_complete
,
emacs_meta_keymap
);
/* Set our hook functions */
/* Set our hook functions */
rl_startup_hook
=
(
Function
*
)
on_startup_hook
;
rl_startup_hook
=
(
rl_hook_func_t
*
)
on_startup_hook
;
#ifdef HAVE_RL_PRE_INPUT_HOOK
#ifdef HAVE_RL_PRE_INPUT_HOOK
rl_pre_input_hook
=
(
Function
*
)
on_pre_input_hook
;
rl_pre_input_hook
=
(
rl_hook_func_t
*
)
on_pre_input_hook
;
#endif
#endif
/* Set our completion function */
/* Set our completion function */
rl_attempted_completion_function
=
(
CPPFunction
*
)
flex_complete
;
rl_attempted_completion_function
=
(
rl_completion_func_t
*
)
flex_complete
;
/* Set Python word break characters */
/* Set Python word break characters */
completer_word_break_characters
=
completer_word_break_characters
=
rl_completer_word_break_characters
=
rl_completer_word_break_characters
=
...
...
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