diff options
Diffstat (limited to 'src/choices.h')
-rw-r--r-- | src/choices.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/choices.h b/src/choices.h index 319765e..f5f9892 100644 --- a/src/choices.h +++ b/src/choices.h @@ -3,8 +3,10 @@ #include <stdio.h> +#include "match.h" + struct scored_result { - double score; + score_t score; const char *str; }; @@ -31,7 +33,7 @@ void choices_add(choices_t *c, const char *choice); size_t choices_available(choices_t *c); void choices_search(choices_t *c, const char *search); const char *choices_get(choices_t *c, size_t n); -double choices_getscore(choices_t *c, size_t n); +score_t choices_getscore(choices_t *c, size_t n); void choices_prev(choices_t *c); void choices_next(choices_t *c); |