X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=client%2Fclient.c;h=991bc06a784c5cdfe08859375025cde891923121;hp=ffb1b3184729faa089d5417b60838e94b2ff6e0d;hb=248491b25960ff7c08860dd0065f7e04cc550e90;hpb=310bcbad07ab48568d6f82176241ba304192a43d diff --git a/client/client.c b/client/client.c index ffb1b31..991bc06 100644 --- a/client/client.c +++ b/client/client.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2006, Index Data ApS * See the file LICENSE for details. * - * $Id: client.c,v 1.306 2006-05-07 19:13:55 adam Exp $ + * $Id: client.c,v 1.308 2006-05-07 19:43:00 adam Exp $ */ #include @@ -173,7 +173,7 @@ void process_cmd_line(char* line); char **readline_completer(char *text, int start, int end); #endif static char *command_generator(const char *text, int state); -char** curret_global_list=NULL; +char** current_global_list = NULL; int cmd_register_tab(const char* arg); static void close_session (void); @@ -4539,6 +4539,7 @@ void process_cmd_line(char* line) static char *command_generator(const char *text, int state) { +#if HAVE_READLINE_READLINE_H static int idx; if (state==0) { idx = 0; @@ -4549,6 +4550,7 @@ static char *command_generator(const char *text, int state) return strdup(cmd_array[idx-1].cmd); } } +#endif return NULL; } @@ -4586,7 +4588,7 @@ char **readline_completer(char *text, int start, int end) if(!cmd_array[i].cmd) return NULL; - curret_global_list = cmd_array[i].local_tabcompletes; + current_global_list = cmd_array[i].local_tabcompletes; completerToUse = cmd_array[i].rl_completerfunction; if (completerToUse==NULL)