diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-09-23 20:51:04 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-09-23 20:51:04 -0700 |
| commit | 3a2492d584e3c7d4cada1386921d80ace33c1fd2 (patch) | |
| tree | c644006290392edf5da2d3e85c41feef40d81f22 /print.h | |
| parent | fddba4c54f3ce21e711cc2cd931ce5c4cad660b9 (diff) | |
WIP: working line breaks, formatting, etc. All seems functional, but a
bit messy
Diffstat (limited to 'print.h')
| -rw-r--r-- | print.h | 29 |
1 files changed, 0 insertions, 29 deletions
@@ -1,29 +0,0 @@ -// -// Header file for print.c (printing/visualizing matches) -// -#ifndef PRINT__H -#define PRINT__H - -#include <stdbool.h> - -#include "files.h" -#include "match.h" - -#define USE_DEFAULT_CONTEXT -3 -#define ALL_CONTEXT -2 -#define NO_CONTEXT -1 - -typedef struct { - file_t *file; - const char *pos; - int context_before, context_after; - bool needs_line_number:1; - bool use_color:1; - const char *lineformat; -} printer_t; - -__attribute__((nonnull(1,2))) -void print_match(FILE *out, printer_t *pr, match_t *m); - -#endif -// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 |
