Root/error.h

Source at commit 809e8142b53ba7227241d39d2c4057f7201087a9 created 4 years 10 months ago.
By Werner Almesberger, gui.c (change_world): don't change color of the active frame
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
18extern int lineno;
19
20extern void (*reporter)(const char *s);
21
22
23void yywarn(const char *s);
24
25void yyerrorf(const char *fmt, ...)
26    __attribute__((format(printf, 1, 2)));
27void yyerror(const char *s);
28
29void report_to_stderr(const char *s);
30void report_parse_error(const char *s);
31void fail(const char *fmt, ...)
32    __attribute__((format(printf, 1, 2)));
33
34#endif /* !ERROR_H */
35

Archive Download this file

Branches:
master



interactive