Root/
Source at commit c9af8cd0fe183d31d1bc7079cb8e7deec3bbe74d created 13 years 9 months ago. By werner, The mechanism for selecting points for measurements reaches its limits when using frames to encapsulate building blocks, e.g., like macros or functions in a programming language. Since measurements only know about the frame containing a vector but not the frames containing that frame, invocations of this frame from different places can only be distinguished within the min/next/max scheme. (See the example in README.) | |
---|---|
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