* 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 <stdio.h>
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);
static char *command_generator(const char *text, int state)
{
+#if HAVE_READLINE_READLINE_H
static int idx;
if (state==0) {
idx = 0;
return strdup(cmd_array[idx-1].cmd);
}
}
+#endif
return NULL;
}
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)