| File src/engine/completion.c changed (mode: 100644) (index 0edb02db4..f98c3546e) |
| 29 |
29 |
#include "../utils/utf8.h" |
#include "../utils/utf8.h" |
| 30 |
30 |
#include "../utils/utils.h" |
#include "../utils/utils.h" |
| 31 |
31 |
|
|
|
32 |
|
static int add_match(char match[], const char descr[]); |
|
33 |
|
static void group_unique_sort(size_t start_index, size_t len); |
|
34 |
|
static int sorter(const void *first, const void *second); |
|
35 |
|
static void remove_duplicates(vle_compl_t arr[], size_t count); |
|
36 |
|
|
| 32 |
37 |
static enum |
static enum |
| 33 |
38 |
{ |
{ |
| 34 |
39 |
NOT_STARTED, |
NOT_STARTED, |
| |
| ... |
... |
static char **sort_keys; |
| 55 |
60 |
/* Function called to pre-process path for completion list. */ |
/* Function called to pre-process path for completion list. */ |
| 56 |
61 |
static vle_compl_add_path_hook_f add_path_hook = &strdup; |
static vle_compl_add_path_hook_f add_path_hook = &strdup; |
| 57 |
62 |
|
|
| 58 |
|
static int add_match(char match[], const char descr[]); |
|
| 59 |
|
static void group_unique_sort(size_t start_index, size_t len); |
|
| 60 |
|
static int sorter(const void *first, const void *second); |
|
| 61 |
|
static void remove_duplicates(vle_compl_t arr[], size_t count); |
|
| 62 |
|
|
|
| 63 |
63 |
void |
void |
| 64 |
64 |
vle_compl_reset(void) |
vle_compl_reset(void) |
| 65 |
65 |
{ |
{ |