code / bp

Lines4.3K C3.3K Markdown541 YAML273 make110 Shell77 Lua54
(18 lines)
1 //
2 // Debug visualization of matches
3 //
4 #pragma once
6 #include "match.h"
8 typedef struct {
9 const char *normal_color, *match_color, *replace_color;
10 int (*fprint_between)(FILE *out, const char *start, const char *end, const char *normal_color);
11 void (*on_nl)(FILE *out);
12 } print_options_t;
13 __attribute__((nonnull(1, 2, 3))) int fprint_match(FILE *out, const char *file_start, bp_match_t *m,
14 print_options_t *opts);
16 __attribute__((nonnull)) void explain_match(bp_match_t *m);
18 // vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0