* Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: tabcomplete.c,v 1.12 2005-06-25 15:46:01 adam Exp $
+ * $Id: tabcomplete.c,v 1.14 2006-05-07 19:38:58 adam Exp $
*/
#include <string.h>
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;
}