[Python-checkins] r54874 - python/trunk/Modules/readline.c
neal.norwitz
python-checkins at python.org
Thu Apr 19 07:52:38 CEST 2007
Author: neal.norwitz
Date: Thu Apr 19 07:52:37 2007
New Revision: 54874
Modified:
python/trunk/Modules/readline.c
Log:
SF #1703270, add missing declaration in readline.c to avoid compiler warning.
Modified: python/trunk/Modules/readline.c
==============================================================================
--- python/trunk/Modules/readline.c (original)
+++ python/trunk/Modules/readline.c Thu Apr 19 07:52:37 2007
@@ -34,6 +34,8 @@
#ifdef HAVE_RL_COMPLETION_MATCHES
#define completion_matches(x, y) \
rl_completion_matches((x), ((rl_compentry_func_t *)(y)))
+#else
+extern char **completion_matches(char *, rl_compentry_func_t *);
#endif
@@ -632,7 +634,7 @@
/* C function to call the Python completer. */
static char *
-on_completion(char *text, int state)
+on_completion(const char *text, int state)
{
char *result = NULL;
if (completer != NULL) {
More information about the Python-checkins
mailing list