| 383 | } |
| 384 | |
| 385 | static BOOL match_error(LPCTSTR line, LPTSTR fname, LPCTSTR& msg, |
| 386 | int& lineno) |
| 387 | { |
| 388 | LPCTSTR p = line; |
| 389 | #if 0 |
| 390 | LPCTSTR p1; |
| 391 | int stacknum; |
| 392 | match_ws(p); p1 = p; |
| 393 | if (!((match("Error", p) || match("Warning", p)) |
| 394 | && match_ws(p) || |
| 395 | match_num(p, stacknum) && match(">", p) && match_ws(p))) |
| 396 | p = p1; |
| 397 | #endif |
| 398 | if (!(match_fname(p, fname) && match(", line ", p) && |
| 399 | match_num(p, lineno) && |
| 400 | match(":", p) && match_ws(p) && |
| 401 | strcmp(fname, "<stdin>"))) |
| 402 | return FALSE; |
| 403 | else { |
| 404 | msg = p; |
| 405 | return TRUE; |
| 406 | } |
| 407 | } |
| 408 | |
| 409 | BOOL CEvalView::GetErr(CString& fname, int& lineno, int &ref, |
| 410 | CString& msg) |
no test coverage detected