diff options
author | John Hawthorn <john.hawthorn@gmail.com> | 2016-06-27 01:14:44 -0700 |
---|---|---|
committer | John Hawthorn <john.hawthorn@gmail.com> | 2016-07-10 13:03:25 -0700 |
commit | 7d3b5c1fd8a78936beaee22f87d675ebdf0239d2 (patch) | |
tree | 75c35d6feaaba58c3d85defd7c2ad61bb9b4b494 /src/choices.h | |
parent | 5c2d67ca7a14cfad94a5718ea62ad1b4d31f73b6 (diff) |
Use score_t instead of double
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); |