[Python-checkins] r85680 - python/branches/py3k/Modules/readline.c
georg.brandl
python-checkins at python.org
Mon Oct 18 09:27:55 CEST 2010
Author: georg.brandl
Date: Mon Oct 18 09:27:55 2010
New Revision: 85680
Log:
Fix compiler warning about unused static function.
Modified:
python/branches/py3k/Modules/readline.c
Modified: python/branches/py3k/Modules/readline.c
==============================================================================
--- python/branches/py3k/Modules/readline.c (original)
+++ python/branches/py3k/Modules/readline.c Mon Oct 18 09:27:55 2010
@@ -64,10 +64,11 @@
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 @@
/* 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 @@
}
return result;
}
+#endif
/* A more flexible constructor that saves the "begidx" and "endidx"
More information about the Python-checkins
mailing list