summaryrefslogtreecommitdiff
path: root/choices.h
diff options
context:
space:
mode:
authorJohn Hawthorn <john.hawthorn@gmail.com>2014-09-21 14:40:36 -0700
committerJohn Hawthorn <john.hawthorn@gmail.com>2014-09-27 16:50:08 -0700
commitd5749099950bf2e4302b9cf12658092d007d8d4b (patch)
tree41e112b880335b432ddd248700c7e7b081f4312d /choices.h
parentef663072f61e21c29a8885e6518d28fae6f9c91c (diff)
Store string in result instead of position
Diffstat (limited to 'choices.h')
-rw-r--r--choices.h6
1 files changed, 3 insertions, 3 deletions
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;