Moves *pos to start of line. */
| 187 | |
| 188 | /* Moves *pos to start of line. */ |
| 189 | static unsigned linenum(const char *raw, const char **pos) |
| 190 | { |
| 191 | unsigned line = 0; /* Out-by-one below */ |
| 192 | const char *l = raw, *point = *pos; |
| 193 | |
| 194 | while (l < point) { |
| 195 | *pos = l; |
| 196 | l = strchr(l, '\n'); |
| 197 | line++; |
| 198 | if (!l) |
| 199 | break; |
| 200 | l++; |
| 201 | } |
| 202 | return line; |
| 203 | } |
| 204 | |
| 205 | static void fail_mismatch(const char *filename, |
| 206 | const char *raw, const char *pos, |
no outgoing calls
no test coverage detected