gwion-util
utilities for the Gwion project
|
Go to the source code of this file.
Macros | |
#define | _PRINTF(...) tcol_fprintf(printer->stream, __VA_ARGS__) |
#define | _PUTCHR(...) fputc(__VA_ARGS__, printer->stream) |
Functions | |
void | perr_printer_init (perr_printer_t *printer, FILE *stream, const char *source, bool utf8, perr_runner_t style) |
static void | perr_print_column (const perr_printer_t *printer, const char *color, const size_t column) |
static void | _perr_print_filename (const perr_printer_t *printer, const perr_t *err, const size_t column) |
static void | _perr_print_error (const perr_printer_t *printer, const perr_t *err, const char *color) |
void | perr_print_line_number (const perr_printer_t *printer, const perr_t *err, const char *color) |
static void | _perr_print_offending_line (const perr_printer_t *printer, const perr_t *err, const char *error_line, const char *color, const size_t column) |
static void | _perr_print_highlight_error (const perr_printer_t *printer, const perr_t *err, const char *error_line, const char *color, const size_t column, const bool small) |
static void | _perr_print_fix (const perr_printer_t *printer, const char *fix) |
static void | lookup_color (char *color, enum libprettyerr_errtype type) |
static void | perr_print_basic_style (const perr_printer_t *printer, const perr_t *err) |
static void | perr_print_secondary_style (const perr_printer_t *printer, const perr_t *err) |
void | perr_print_error (const perr_printer_t *printer, const perr_t *err) |
Variables | |
static char const | _tcol_lookup [5] = {'G', 'R', 'M', 'B', 'Y'} |
static char const * | _ascii_box_lookup [8] = {"|", "|", "+", "-", "+", "|"} |
static char const * | _utf8_box_lookup [8] |
static const char * | _errtype_lookup [5] |
perr_runner_t | perr_runner_basic_style = perr_print_basic_style |
perr_runner_t | perr_runner_secondary_style = perr_print_secondary_style |
#define _PRINTF | ( | ... | ) | tcol_fprintf(printer->stream, __VA_ARGS__) |
Definition at line 29 of file prettyerr.c.
#define _PUTCHR | ( | ... | ) | fputc(__VA_ARGS__, printer->stream) |
Definition at line 30 of file prettyerr.c.
|
static |
Definition at line 79 of file prettyerr.c.
|
inlinestatic |
Definition at line 73 of file prettyerr.c.
|
inlinestatic |
Definition at line 142 of file prettyerr.c.
|
inlinestatic |
Definition at line 110 of file prettyerr.c.
|
static |
Definition at line 96 of file prettyerr.c.
|
static |
Definition at line 149 of file prettyerr.c.
|
inlinestatic |
Definition at line 161 of file prettyerr.c.
|
static |
Definition at line 67 of file prettyerr.c.
void perr_print_error | ( | const perr_printer_t * | printer, |
const perr_t * | err ) |
Definition at line 241 of file prettyerr.c.
void perr_print_line_number | ( | const perr_printer_t * | printer, |
const perr_t * | err, | ||
const char * | color ) |
Definition at line 89 of file prettyerr.c.
|
inlinestatic |
Definition at line 212 of file prettyerr.c.
void perr_printer_init | ( | perr_printer_t * | printer, |
FILE * | stream, | ||
const char * | source, | ||
bool | utf8, | ||
perr_runner_t | style ) |
Definition at line 42 of file prettyerr.c.
|
static |
Definition at line 34 of file prettyerr.c.
|
static |
Definition at line 39 of file prettyerr.c.
|
static |
Definition at line 32 of file prettyerr.c.
|
static |
Definition at line 36 of file prettyerr.c.
perr_runner_t perr_runner_basic_style = perr_print_basic_style |
Definition at line 245 of file prettyerr.c.
perr_runner_t perr_runner_secondary_style = perr_print_secondary_style |
Definition at line 246 of file prettyerr.c.