Lines 94-100
void free(), exit(), perror();
Link Here
|
94 |
char * mygetline(); |
94 |
char * mygetline(); |
95 |
char ** attempt_completion(char *, int, int); |
95 |
char ** attempt_completion(char *, int, int); |
96 |
char * keyword_completion(char *, int); |
96 |
char * keyword_completion(char *, int); |
97 |
char * command_completion(char *, int); |
97 |
char * command_completion(const char *, int); |
98 |
#endif |
98 |
#endif |
99 |
|
99 |
|
100 |
/* maximum # of chars from progname to display in prompt */ |
100 |
/* maximum # of chars from progname to display in prompt */ |
Lines 204-210
int DebugFlag = 0; /* -d, output debugg
Link Here
|
204 |
#define ANSI 4 /* combo not allowed anymore in ANSI compiler */ |
204 |
#define ANSI 4 /* combo not allowed anymore in ANSI compiler */ |
205 |
#define A ANSI |
205 |
#define A ANSI |
206 |
|
206 |
|
|
|
207 |
#if defined(USE_READLINE) |
207 |
extern char **completion_matches PARAMS((char *, rl_compentry_func_t *)); |
208 |
extern char **completion_matches PARAMS((char *, rl_compentry_func_t *)); |
|
|
209 |
#endif |
210 |
|
208 |
/* This is an lower left triangular array. If we needed */ |
211 |
/* This is an lower left triangular array. If we needed */ |
209 |
/* to save 9 bytes, the "long" row can be removed. */ |
212 |
/* to save 9 bytes, the "long" row can be removed. */ |
210 |
char crosscheck[9][9] = { |
213 |
char crosscheck[9][9] = { |
Lines 405-411
char ** attempt_completion(char *text, i
Link Here
|
405 |
return matches; |
408 |
return matches; |
406 |
} |
409 |
} |
407 |
|
410 |
|
408 |
char * command_completion(char *text, int flag) |
411 |
char * command_completion(const char *text, int flag) |
409 |
{ |
412 |
{ |
410 |
static int index, len; |
413 |
static int index, len; |
411 |
char *command; |
414 |
char *command; |
Lines 1252-1259
char **argv;
Link Here
|
1252 |
|
1255 |
|
1253 |
#ifdef USE_READLINE |
1256 |
#ifdef USE_READLINE |
1254 |
/* install completion handlers */ |
1257 |
/* install completion handlers */ |
1255 |
rl_attempted_completion_function = (CPPFunction *)attempt_completion; |
1258 |
rl_attempted_completion_function = (rl_completion_func_t *) attempt_completion; |
1256 |
rl_completion_entry_function = (Function *)keyword_completion; |
1259 |
rl_completion_entry_function = (rl_compentry_func_t *) keyword_completion; |
1257 |
#endif |
1260 |
#endif |
1258 |
|
1261 |
|
1259 |
setprogname(argv[0]); |
1262 |
setprogname(argv[0]); |