summaryrefslogtreecommitdiff
path: root/src/string_vec.h
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2022-11-19 17:55:24 +0000
committerPhil Jones <philj56@gmail.com>2022-11-19 18:39:08 +0000
commit52be46abfca9a9b458d7455e891c937437b1356e (patch)
tree428407d2ad26f33ca8ca823bcb2dc1f84bda6804 /src/string_vec.h
parent9ceceeb59a95919e5fe09338dc27e4fac0b5aa24 (diff)
Cleanup some potentially flaky logic.
Some of the string vec code was still assuming that it was just a list of `char *`s, rather than `struct scored_string`s. Correcting that makes future changes a little less error prone, and allows significantly simpler history sorting for tofi-run.
Diffstat (limited to 'src/string_vec.h')
-rw-r--r--src/string_vec.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string_vec.h b/src/string_vec.h
index f4e0bb9..f3e840c 100644
--- a/src/string_vec.h
+++ b/src/string_vec.h
@@ -32,7 +32,7 @@ void string_vec_sort(struct string_vec *restrict vec);
void string_vec_uniq(struct string_vec *restrict vec);
-char **string_vec_find(struct string_vec *restrict vec, const char *str);
+struct scored_string *string_vec_find(struct string_vec *restrict vec, const char *str);
[[nodiscard("memory leaked")]]
struct string_vec string_vec_filter(