Lines 36-41
Link Here
|
36 |
#ifdef HAVE_RL_COMPLETION_MATCHES |
36 |
#ifdef HAVE_RL_COMPLETION_MATCHES |
37 |
#define completion_matches(x, y) \ |
37 |
#define completion_matches(x, y) \ |
38 |
rl_completion_matches((x), ((rl_compentry_func_t *)(y))) |
38 |
rl_completion_matches((x), ((rl_compentry_func_t *)(y))) |
|
|
39 |
#else |
40 |
extern char **completion_matches(char *, rl_compentry_func_t *); |
39 |
#endif |
41 |
#endif |
40 |
|
42 |
|
41 |
|
43 |
|
Lines 634-640
Link Here
|
634 |
/* C function to call the Python completer. */ |
636 |
/* C function to call the Python completer. */ |
635 |
|
637 |
|
636 |
static char * |
638 |
static char * |
637 |
on_completion(char *text, int state) |
639 |
on_completion(const char *text, int state) |
638 |
{ |
640 |
{ |
639 |
char *result = NULL; |
641 |
char *result = NULL; |
640 |
if (completer != NULL) { |
642 |
if (completer != NULL) { |