summaryrefslogtreecommitdiff
path: root/src/string_vec.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/string_vec.h')
-rw-r--r--src/string_vec.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/string_vec.h b/src/string_vec.h
index 44fd5fe..2a106a2 100644
--- a/src/string_vec.h
+++ b/src/string_vec.h
@@ -2,12 +2,19 @@
#define STRING_VEC_H
#include <stddef.h>
+#include <stdint.h>
#include <stdio.h>
+struct scored_string {
+ char *string;
+ int8_t search_score;
+ int8_t history_score;
+};
+
struct string_vec {
size_t count;
size_t size;
- char **buf;
+ struct scored_string *buf;
};
[[nodiscard("memory leaked")]]