MCPcopy Create free account
hub / github.com/agraef/pure-lang / match_error

Function match_error

purepad/evalview.cpp:385–407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383}
384
385static 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
409BOOL CEvalView::GetErr(CString& fname, int& lineno, int &ref,
410 CString& msg)

Callers 1

GetErrMethod · 0.85

Calls 4

match_wsFunction · 0.85
match_numFunction · 0.85
match_fnameFunction · 0.85
matchFunction · 0.70

Tested by

no test coverage detected