Change rl_complete() and rl_list_possib() to be function pointers instead.

This is a much cleaner design and also works with or without the configure
--enable-default-complete option.

See the examples for details.
This commit is contained in:
Joachim Nilsson
2008-10-02 09:09:09 +02:00
parent 5c9f0047bb
commit 62e900a061
11 changed files with 75 additions and 33 deletions

View File

@@ -161,7 +161,7 @@ SplitPath(path, dirpart, filepart)
** Fill in *unique if we completed it, or set it to 0 if ambiguous.
*/
char *
rl_complete(pathname, unique)
default_rl_complete(pathname, unique)
char *pathname;
int *unique;
{
@@ -233,7 +233,7 @@ rl_complete(pathname, unique)
** Return all possible completions.
*/
int
rl_list_possib(pathname, avp)
default_rl_list_possib(pathname, avp)
char *pathname;
char ***avp;
{