From 5d9e4b31317e02432c1e7437f1b75f252f968a3e Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Fri, 8 Mar 2024 23:21:51 +0100 Subject: remove imspinner dep --- src/search.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/search.h') diff --git a/src/search.h b/src/search.h index a8aaf90..b56e007 100644 --- a/src/search.h +++ b/src/search.h @@ -44,16 +44,16 @@ typedef struct t_ts_file_match { ts_found_file* file; int line_nr; - int word_match_offset; // nr of bytes, not codepoints. - int word_match_length; // nr of bytes, not codepoints. + size_t word_match_offset; // nr of bytes, not codepoints. + size_t word_match_length; // nr of bytes, not codepoints. utf8_int8_t *line_info; } ts_file_match; typedef struct t_ts_text_match { int line_nr; - int word_offset; - int word_match_len; + size_t word_offset; + size_t word_match_len; utf8_int8_t *line_start; utf8_int8_t *line_info; } ts_text_match; @@ -61,7 +61,7 @@ typedef struct t_ts_text_match extern ts_search_result* current_search_result; ts_array ts_get_filters(utf8_int8_t *pattern); -int ts_filter_matches(ts_array *filters, utf8_int8_t *string, utf8_int8_t **matched_filter); +size_t ts_filter_matches(ts_array *filters, utf8_int8_t *string, utf8_int8_t **matched_filter); int ts_string_match(utf8_int8_t *first, utf8_int8_t *second); ts_search_result* ts_create_empty_search_result(); bool ts_string_contains(utf8_int8_t *text_to_search, utf8_int8_t *text_to_find, ts_array *text_matches); -- cgit v1.2.3-70-g09d2