My Project
Loading...
Searching...
No Matches
gwlog.h
Go to the documentation of this file.
1
4#ifndef __LOC
5#define __LOC
6
7typedef struct pos_t {
8 short unsigned int line;
9 short unsigned int column;
11
12ANN void pos_ini(pos_t*);
14
15typedef struct loc_t_ {
16 struct pos_t first;
17 struct pos_t last;
18} loc_t;
19
20void gwlog_error(const char *main, const char *explain,
21 const char *filename, const loc_t loc, const uint error_code);
22ANN void gwlog_warning(const char *main, const char *filename,
23 const loc_t loc);
24ANN void gwlog_related(const char *main, const char *filename,
25 const loc_t loc);
26ANN void gwlog_hint(const char *main, const char *filename,
27 const loc_t loc);
28typedef void (*gwlog_error_function_t)(const char *, const char *,
29 const char *, const loc_t, const uint, const enum libprettyerr_errtype);
30typedef void (*gwlog_warning_function_t)(const char *main, const char *filename,
31 const loc_t loc);
36#endif
ANN void gwlog_set_func(gwlog_error_function_t error, gwlog_warning_function_t warning, gwlog_warning_function_t info, gwlog_warning_function_t hint)
Definition gwlog.c:30
ANN void gwlog_related(const char *main, const char *filename, const loc_t loc)
Definition gwlog.c:155
struct pos_t pos_t
ANN void pos_ini(pos_t *)
Definition gwlog.c:11
struct loc_t_ loc_t
Definition absyn.h:347
void gwlog_error(const char *main, const char *explain, const char *filename, const loc_t loc, const uint error_code)
Definition gwlog.c:115
void gwion_parser_set_default_pos(const pos_t)
Definition gwlog.c:7
void(* gwlog_warning_function_t)(const char *main, const char *filename, const loc_t loc)
Definition gwlog.h:30
ANN void gwlog_warning(const char *main, const char *filename, const loc_t loc)
Definition gwlog.c:146
void(* gwlog_error_function_t)(const char *, const char *, const char *, const loc_t, const uint, const enum libprettyerr_errtype)
Definition gwlog.h:28
ANN void gwlog_hint(const char *main, const char *filename, const loc_t loc)
Definition gwlog.c:160
int main(int argc, char **argv)
Definition main.c:4
Definition gwlog.h:15
struct pos_t last
Definition gwlog.h:17
struct pos_t first
Definition gwlog.h:16
Definition gwlog.h:7
short unsigned int column
Definition gwlog.h:9
short unsigned int line
Definition gwlog.h:8