aboutsummaryrefslogtreecommitdiff
path: root/printmatch.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2022-12-27 14:43:10 -0500
committerBruce Hill <bruce@bruce-hill.com>2022-12-27 14:43:10 -0500
commit0050a6fc064f7700d9940bf4fd381c7a072652a6 (patch)
treea9ebb169813c0e9b4e946f17825e457a20a86cb7 /printmatch.h
parent3ed2c195940de9fd2aa320147d1beaa8a0c98654 (diff)
Add number of characters printed to fprint_match()
Diffstat (limited to 'printmatch.h')
-rw-r--r--printmatch.h5
1 files changed, 2 insertions, 3 deletions
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);