summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-10-18 07:27:55 (GMT)
committerGeorg Brandl <georg@python.org>2010-10-18 07:27:55 (GMT)
commit646fdd6c610baa551b6c3807cc61bc79075db092 (patch)
treef124821ad2a1b68420be75d4c6a1670ec0d392f0 /Modules
parentc7f4af4cbe81bc2790fb7e899549100621a3bf52 (diff)
downloadcpython-646fdd6c610baa551b6c3807cc61bc79075db092.zip
cpython-646fdd6c610baa551b6c3807cc61bc79075db092.tar.gz
cpython-646fdd6c610baa551b6c3807cc61bc79075db092.tar.bz2
Fix compiler warning about unused static function.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/readline.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/readline.c b/Modules/readline.c
index 18908ef..bad8586 100644
--- a/Modules/readline.c
+++ b/Modules/readline.c
@@ -64,10 +64,11 @@ static int using_libedit_emulation = 0;
static const char libedit_version_tag[] = "EditLine wrapper";
#endif /* __APPLE__ */
+#ifdef HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK
static void
on_completion_display_matches_hook(char **matches,
int num_matches, int max_length);
-
+#endif
/* Exported function to send one line to readline's init file parser */
@@ -774,6 +775,7 @@ on_pre_input_hook(void)
/* C function to call the Python completion_display_matches */
+#ifdef HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK
static void
on_completion_display_matches_hook(char **matches,
int num_matches, int max_length)
@@ -853,6 +855,7 @@ on_completion(const char *text, int state)
}
return result;
}
+#endif
/* A more flexible constructor that saves the "begidx" and "endidx"