diff options
| author | Neal Norwitz <nnorwitz@gmail.com> | 2007-04-19 05:52:37 +0000 |
|---|---|---|
| committer | Neal Norwitz <nnorwitz@gmail.com> | 2007-04-19 05:52:37 +0000 |
| commit | bd53870d899fe3492fd4b1432df3f0ad24d0e287 (patch) | |
| tree | 4408bfee08ac631de2666c3c5a886e5f5df762fa /Modules/readline.c | |
| parent | f64c90052fe4f82e7400a842c34138dc917df059 (diff) | |
| download | cpython-git-bd53870d899fe3492fd4b1432df3f0ad24d0e287.tar.gz | |
SF #1703270, add missing declaration in readline.c to avoid compiler warning.
Diffstat (limited to 'Modules/readline.c')
| -rw-r--r-- | Modules/readline.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/readline.c b/Modules/readline.c index 853874be25..fd800ffa1a 100644 --- a/Modules/readline.c +++ b/Modules/readline.c @@ -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 @@ on_pre_input_hook(void) /* 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) { |
