summarylogtreecommitdiffstats
path: root/readline-6.3.patch
diff options
context:
space:
mode:
Diffstat (limited to 'readline-6.3.patch')
-rw-r--r--readline-6.3.patch62
1 files changed, 62 insertions, 0 deletions
diff --git a/readline-6.3.patch b/readline-6.3.patch
new file mode 100644
index 000000000000..340e117aedb9
--- /dev/null
+++ b/readline-6.3.patch
@@ -0,0 +1,62 @@
+diff -aur Python-3.2.5/Modules/readline.c Python-3.2.5.new/Modules/readline.c
+--- Python-3.2.5/Modules/readline.c 2013-05-15 18:33:54.000000000 +0200
++++ Python-3.2.5.new/Modules/readline.c 2014-04-16 15:22:08.860060801 +0200
+@@ -760,15 +760,24 @@
+ return result;
+ }
+
++
+ static int
++#if defined(_RL_FUNCTION_TYPEDEF)
+ on_startup_hook(void)
++#else
++on_startup_hook()
++#endif
+ {
+ return on_hook(startup_hook);
+ }
+
+ #ifdef HAVE_RL_PRE_INPUT_HOOK
+ static int
++#if defined(_RL_FUNCTION_TYPEDEF)
+ on_pre_input_hook(void)
++#else
++on_pre_input_hook()
++#endif
+ {
+ return on_hook(pre_input_hook);
+ }
+@@ -892,7 +901,7 @@
+ #endif
+
+ #ifdef __APPLE__
+- /* the libedit readline emulation resets key bindings etc
++ /* the libedit readline emulation resets key bindings etc
+ * when calling rl_initialize. So call it upfront
+ */
+ if (using_libedit_emulation)
+@@ -912,12 +921,12 @@
+ rl_bind_key_in_map ('\t', rl_complete, emacs_meta_keymap);
+ rl_bind_key_in_map ('\033', rl_complete, emacs_meta_keymap);
+ /* Set our hook functions */
+- rl_startup_hook = (Function *)on_startup_hook;
++ rl_startup_hook = on_startup_hook;
+ #ifdef HAVE_RL_PRE_INPUT_HOOK
+- rl_pre_input_hook = (Function *)on_pre_input_hook;
++ rl_pre_input_hook = on_pre_input_hook;
+ #endif
+ /* Set our completion function */
+- rl_attempted_completion_function = (CPPFunction *)flex_complete;
++ rl_attempted_completion_function = flex_complete;
+ /* Set Python word break characters */
+ rl_completer_word_break_characters =
+ strdup(" \t\n`~!@#$%^&*()-=+[{]}\\|;:'\",<>/?");
+@@ -936,7 +945,7 @@
+ else
+ #endif /* __APPLE__ */
+ rl_initialize();
+-
++
+ RESTORE_LOCALE(saved_locale)
+ }
+