Root/
| 1 | /* |
| 2 | * error.h - Error reporting |
| 3 | * |
| 4 | * Written 2009, 2010 by Werner Almesberger |
| 5 | * Copyright 2009, 2010 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 yywarn(const char *s); |
| 24 | |
| 25 | void yyerrorf(const char *fmt, ...) |
| 26 | __attribute__((format(printf, 1, 2))); |
| 27 | void yyerror(const char *s); |
| 28 | |
| 29 | void report_to_stderr(const char *s); |
| 30 | void report_parse_error(const char *s); |
| 31 | void fail(const char *fmt, ...) |
| 32 | __attribute__((format(printf, 1, 2))); |
| 33 | |
| 34 | #endif /* !ERROR_H */ |
| 35 |
Branches:
master
