version 1.15, 2004/07/09 17:11:22 |
version 1.16, 2004/07/20 03:50:25 |
|
|
static unsigned char complete_remote(char *, int); |
static unsigned char complete_remote(char *, int); |
|
|
static int |
static int |
comparstr(a, b) |
comparstr(const void *a, const void *b) |
const void *a, *b; |
|
{ |
{ |
return (strcmp(*(char **)a, *(char **)b)); |
return (strcmp(*(char **)a, *(char **)b)); |
} |
} |
|
|
* words stringlist containing possible matches |
* words stringlist containing possible matches |
*/ |
*/ |
static unsigned char |
static unsigned char |
complete_ambiguous(word, list, words) |
complete_ambiguous(char *word, int list, StringList *words) |
char *word; |
|
int list; |
|
StringList *words; |
|
{ |
{ |
char insertstr[MAXPATHLEN]; |
char insertstr[MAXPATHLEN]; |
char *lastmatch; |
char *lastmatch; |
|
|
* Complete a command |
* Complete a command |
*/ |
*/ |
static unsigned char |
static unsigned char |
complete_command(word, list) |
complete_command(char *word, int list) |
char *word; |
|
int list; |
|
{ |
{ |
struct cmd *c; |
struct cmd *c; |
StringList *words; |
StringList *words; |
|
|
* Complete a local file |
* Complete a local file |
*/ |
*/ |
static unsigned char |
static unsigned char |
complete_local(word, list) |
complete_local(char *word, int list) |
char *word; |
|
int list; |
|
{ |
{ |
StringList *words; |
StringList *words; |
char dir[MAXPATHLEN]; |
char dir[MAXPATHLEN]; |
|
|
* Complete a remote file |
* Complete a remote file |
*/ |
*/ |
static unsigned char |
static unsigned char |
complete_remote(word, list) |
complete_remote(char *word, int list) |
char *word; |
|
int list; |
|
{ |
{ |
static StringList *dirlist; |
static StringList *dirlist; |
static char lastdir[MAXPATHLEN]; |
static char lastdir[MAXPATHLEN]; |
|
|
* Generic complete routine |
* Generic complete routine |
*/ |
*/ |
unsigned char |
unsigned char |
complete(el, ch) |
complete(EditLine *el, int ch) |
EditLine *el; |
|
int ch; |
|
{ |
{ |
static char word[FTPBUFLEN]; |
static char word[FTPBUFLEN]; |
static int lastc_argc, lastc_argo; |
static int lastc_argc, lastc_argo; |