From 0050a6fc064f7700d9940bf4fd381c7a072652a6 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 27 Dec 2022 14:43:10 -0500 Subject: Add number of characters printed to fprint_match() --- printmatch.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'printmatch.h') diff --git a/printmatch.h b/printmatch.h index 2c4b3ce..c306adf 100644 --- a/printmatch.h +++ b/printmatch.h @@ -7,12 +7,11 @@ typedef struct { const char *normal_color, *match_color, *replace_color; - void (*fprint_between)(FILE *out, const char *start, const char *end, const char *normal_color); + int (*fprint_between)(FILE *out, const char *start, const char *end, const char *normal_color); void (*on_nl)(FILE *out); } print_options_t; __attribute__((nonnull(1,2,3))) -//void fprint_match(FILE *out, const char *file_start, match_t *m, const char *colors[3]); -void fprint_match(FILE *out, const char *file_start, match_t *m, print_options_t *opts); +int fprint_match(FILE *out, const char *file_start, match_t *m, print_options_t *opts); __attribute__((nonnull)) void explain_match(match_t *m); -- cgit v1.2.3