diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-01-08 01:06:43 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-01-08 01:06:43 -0800 |
| commit | 03c790d5b61ecc07a34e6d113a5b434b72c835fe (patch) | |
| tree | c6e1423f4083c62aabd36c22b36ea8c3fba54054 /printing.h | |
| parent | 668c7baf55d07cb429b30b92ea8ce302f9de053a (diff) | |
Renamed viz -> printing, and tidied up the code a bit
Diffstat (limited to 'printing.h')
| -rw-r--r-- | printing.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/printing.h b/printing.h new file mode 100644 index 0000000..7059562 --- /dev/null +++ b/printing.h @@ -0,0 +1,20 @@ +/* + * Header file for printing.c (printing/visualizing matches) + */ +#ifndef PRINTING__H +#define PRINTING__H + +#include "types.h" + +typedef enum { + PRINT_COLOR = 1<<0, + PRINT_LINE_NUMBERS = 1<<1, +} print_options_t; + +__attribute__((nonnull)) +void visualize_match(match_t *m); +__attribute__((nonnull)) +void print_match(FILE *out, file_t *f, match_t *m, print_options_t options); + +#endif +// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1 |
