config.h.in, configure, configure.ac:

Add configure support for ANSI arrow keys.
        Tested OK with gnome-terminal.

src/complete.c:
	Remove usage of CONST and refactor compare() to use standard
        C syntax instead of old K&R.
This commit is contained in:
Joachim Nilsson
2009-02-08 21:13:54 +01:00
parent 4898413730
commit 69e01d11d4
4 changed files with 36 additions and 7 deletions

View File

@@ -25,15 +25,11 @@ strdup(p)
** strcmp-like sorting predicate for qsort.
*/
static int
compare(p1, p2)
CONST void *p1;
CONST void *p2;
compare(void *p1, void *p2)
{
CONST char **v1;
CONST char **v2;
char **v1 = (char **)p1;
char **v2 = (char **)p2;
v1 = (CONST char **)p1;
v2 = (CONST char **)p2;
return strcmp(*v1, *v2);
}