| 78 | int read_errs = 0; |
| 79 | |
| 80 | void error(int lineno, char *line, char *cptr, char *msg, ...) |
| 81 | { |
| 82 | char sbuf[512]; |
| 83 | va_list args; |
| 84 | |
| 85 | va_start(args, msg); |
| 86 | vsprintf(sbuf, msg, args); |
| 87 | va_end(args); |
| 88 | FileError("%s", sbuf); |
| 89 | read_errs++; |
| 90 | } |
| 91 | |
| 92 | void syntax_error(int lineno, char *line, char *cptr) { |
| 93 | error(lineno, line, cptr, "syntax error"); |
no test coverage detected