From d5749099950bf2e4302b9cf12658092d007d8d4b Mon Sep 17 00:00:00 2001 From: John Hawthorn Date: Sun, 21 Sep 2014 14:40:36 -0700 Subject: Store string in result instead of position --- choices.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'choices.h') diff --git a/choices.h b/choices.h index 2687893..d33ece8 100644 --- a/choices.h +++ b/choices.h @@ -1,9 +1,9 @@ #ifndef CHOICES_H #define CHOICES_H CHOICES_H -struct scored_position { - size_t position; +struct scored_result { double score; + const char *str; }; typedef struct { @@ -11,7 +11,7 @@ typedef struct { size_t size; const char **strings; - struct scored_position *results; + struct scored_result *results; size_t available; size_t selection; -- cgit v1.2.3