aboutsummaryrefslogtreecommitdiff
path: root/printing.h
blob: f81dcef93d393f2c91f735a525186763c17cad84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//
// 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);
__attribute__((nonnull))
int print_errors(file_t *f, match_t *m, print_options_t options);

#endif
// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1