* 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 <string.h>
#include <yaz/oid.h>
#include "tabcomplete.h"
-#if HAVE_READLINE_READLINE_H
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;
return (char*)strdup(completions[idx-1]);
};
};
+#endif
return NULL;
}
{
return complete_from_list(curret_global_list,text,state);
}
-#endif
/*
* Local variables: