mirror of
https://github.com/troglobit/editline.git
synced 2025-09-16 16:58:09 +08:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user