18 |
#include "mail.h" |
#include "mail.h" |
19 |
|
|
20 |
static char **ml_command_completion __P((char *cmd, int start, int end)); |
static char **ml_command_completion __P((char *cmd, int start, int end)); |
21 |
static char *ml_command_generator __P((char *text, int state)); |
static char *ml_command_generator __P((const char *text, int state)); |
22 |
|
|
23 |
static volatile int _interrupted; |
static volatile int _interrupted; |
24 |
|
|
218 |
{ |
{ |
219 |
(void)end; |
(void)end; |
220 |
if (start == 0) |
if (start == 0) |
221 |
return completion_matches (cmd, ml_command_generator); |
return rl_completion_matches (cmd, ml_command_generator); |
222 |
return NULL; |
return NULL; |
223 |
} |
} |
224 |
|
|
226 |
* more readline |
* more readline |
227 |
*/ |
*/ |
228 |
char * |
char * |
229 |
ml_command_generator (char *text, int state) |
ml_command_generator (const char *text, int state) |
230 |
{ |
{ |
231 |
static int i, len; |
static int i, len; |
232 |
const char *name; |
const char *name; |