X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=client%2Ftabcomplete.c;h=546c23977666be828b6d514603b1ee40dae14e5e;hp=cbfd14eeef7cd035e551dd5ce56fc7bb355a9595;hb=16d6519a78fe4917ec865a7d084672579ab317ae;hpb=60f5103f542e3f6dd2e22b6df7015f7bc4b3a937 diff --git a/client/tabcomplete.c b/client/tabcomplete.c index cbfd14e..546c239 100644 --- a/client/tabcomplete.c +++ b/client/tabcomplete.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: tabcomplete.c,v 1.13 2006-05-07 19:37:23 adam Exp $ + * $Id: tabcomplete.c,v 1.14 2006-05-07 19:38:58 adam Exp $ */ #include @@ -12,7 +12,6 @@ #include #include "tabcomplete.h" -#if HAVE_READLINE_READLINE_H extern char** curret_global_list; /* *************************************************************************** @@ -23,6 +22,7 @@ extern char** curret_global_list; char* complete_from_list(char* completions[], const char *text, int state) { +#if HAVE_READLINE_READLINE_H static int idx; if(!completions) return NULL; @@ -41,6 +41,7 @@ char* complete_from_list(char* completions[], const char *text, int state) return (char*)strdup(completions[idx-1]); }; }; +#endif return NULL; } @@ -144,7 +145,6 @@ char* default_completer(const char* text, int state) { return complete_from_list(curret_global_list,text,state); } -#endif /* * Local variables: