Root/
Source at commit bc27b094af74a7c6f8b71ceaa63d1ba80d067cbb created 13 years 11 months ago. By werner, With a little help from m8cutils and abyss, we now have regression tests for the topological sort. "make test" or "make tests" invokes the regression tests, "make valgrind" runs them under valgrind's watchful eyes. | |
---|---|
1 | /* |
2 | * error.h - Error reporting |
3 | * |
4 | * Written 2009 by Werner Almesberger |
5 | * Copyright 2009 by Werner Almesberger |
6 | * |
7 | * This program is free software; you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by |
9 | * the Free Software Foundation; either version 2 of the License, or |
10 | * (at your option) any later version. |
11 | */ |
12 | |
13 | |
14 | #ifndef ERROR_H |
15 | #define ERROR_H |
16 | |
17 | |
18 | extern int lineno; |
19 | |
20 | extern void (*reporter)(const char *s); |
21 | |
22 | |
23 | void yyerrorf(const char *fmt, ...) |
24 | __attribute__((format(printf, 1, 2))); |
25 | void yyerror(const char *s); |
26 | |
27 | void report_to_stderr(const char *s); |
28 | void report_parse_error(const char *s); |
29 | void fail(const char *fmt, ...) |
30 | __attribute__((format(printf, 1, 2))); |
31 | |
32 | #endif /* !ERROR_H */ |
33 |
Branches:
master