[Python-checkins] cpython (3.3): Issue #20374: Avoid compiler warnings when compiling readline with libedit.

ned.deily python-checkins at python.org
Thu Feb 6 01:55:53 CET 2014


http://hg.python.org/cpython/rev/9131a9edcac4
changeset: 88981:9131a9edcac4
branch: 3.3
parent: 88977:b5fe07d39e16
user: Ned Deily <nad at acm.org>
date: Wed Feb 05 16:53:10 2014 -0800
summary:
 Issue #20374: Avoid compiler warnings when compiling readline with libedit.
files:
 Modules/readline.c | 9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/Modules/readline.c b/Modules/readline.c
--- a/Modules/readline.c
+++ b/Modules/readline.c
@@ -773,15 +773,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);
 }
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /