blob: 822285e6e3dfa78f44cc32db615f37c72c598a53 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
//
// Header file for printing.c (printing/visualizing matches)
//
#ifndef PRINTING__H
#define PRINTING__H
#include "types.h"
typedef struct {
file_t *file;
const char *pos;
int context_lines;
unsigned int needs_line_number:1;
unsigned int use_color:1;
unsigned int print_line_numbers:1;
} printer_t;
__attribute__((nonnull))
void visualize_match(match_t *m);
__attribute__((nonnull(1,2)))
void print_match(FILE *out, printer_t *pr, match_t *m);
__attribute__((nonnull))
int print_errors(printer_t *pr, match_t *m);
#endif
// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1
|