diff options
author | John Hawthorn <john.hawthorn@gmail.com> | 2014-09-21 14:40:36 -0700 |
---|---|---|
committer | John Hawthorn <john.hawthorn@gmail.com> | 2014-09-27 16:50:08 -0700 |
commit | d5749099950bf2e4302b9cf12658092d007d8d4b (patch) | |
tree | 41e112b880335b432ddd248700c7e7b081f4312d /choices.h | |
parent | ef663072f61e21c29a8885e6518d28fae6f9c91c (diff) |
Store string in result instead of position
Diffstat (limited to 'choices.h')
-rw-r--r-- | choices.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |