X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=client%2Ftabcomplete.c;h=4d2032df8b4b274375ce1fdaa614b074cb769f78;hb=e4ef95b2ccfe88d7049543664f00e5fda957dd0c;hp=870188aa5e36f7fcbc1e705d17cf3df5b97ec88a;hpb=248491b25960ff7c08860dd0065f7e04cc550e90;p=yaz-moved-to-github.git diff --git a/client/tabcomplete.c b/client/tabcomplete.c index 870188a..4d2032d 100644 --- a/client/tabcomplete.c +++ b/client/tabcomplete.c @@ -1,8 +1,8 @@ /* - * Copyright (C) 1995-2006, Index Data ApS + * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: tabcomplete.c,v 1.15 2006-05-07 19:43:00 adam Exp $ + * $Id: tabcomplete.c,v 1.17 2007-01-03 08:42:13 adam Exp $ */ #include @@ -12,15 +12,13 @@ #include #include "tabcomplete.h" -extern char** current_global_list; - /* *************************************************************************** * * generic completer * * ***************************************************************************/ -char* complete_from_list(char* completions[], const char *text, int state) +char *complete_from_list(char* completions[], const char *text, int state) { #if HAVE_READLINE_READLINE_H static int idx; @@ -142,11 +140,6 @@ char* complete_attributeset(const char* text, int state) } -char* default_completer(const char* text, int state) -{ - return complete_from_list(current_global_list, text, state); -} - /* * Local variables: * c-basic-offset: 4