Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ce75105

Browse files
committed
use new readline function types (closes #20374)
1 parent eb7ef94 commit ce75105

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ Core and Builtins
3838
Library
3939
-------
4040

41+
- Issue #20374: Fix build with GNU readline >= 6.3.
42+
4143
- Issue #14548: Make multiprocessing finalizers check pid before
4244
running to cope with possibility of gc running just after fork.
4345
(Backport from 3.x.)

Modules/readline.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -911,12 +911,12 @@ setup_readline(void)
911911
rl_bind_key_in_map ('\t', rl_complete, emacs_meta_keymap);
912912
rl_bind_key_in_map ('\033', rl_complete, emacs_meta_keymap);
913913
/* Set our hook functions */
914-
rl_startup_hook = (Function *)on_startup_hook;
914+
rl_startup_hook = (rl_hook_func_t *)on_startup_hook;
915915
#ifdef HAVE_RL_PRE_INPUT_HOOK
916-
rl_pre_input_hook = (Function *)on_pre_input_hook;
916+
rl_pre_input_hook = (rl_hook_func_t *)on_pre_input_hook;
917917
#endif
918918
/* Set our completion function */
919-
rl_attempted_completion_function = (CPPFunction *)flex_complete;
919+
rl_attempted_completion_function = (rl_completion_func_t *)flex_complete;
920920
/* Set Python word break characters */
921921
completer_word_break_characters =
922922
rl_completer_word_break_characters =

0 commit comments

Comments
 (0)