22 lines
665 B
C++
22 lines
665 B
C++
|
//---------------------------------------------------------------------------
|
||
|
#include "CommonCheck.h"
|
||
|
#include "tokenize.h"
|
||
|
#include <iostream>
|
||
|
#include <sstream>
|
||
|
//---------------------------------------------------------------------------
|
||
|
|
||
|
std::string FileLine(TOKEN *tok)
|
||
|
{
|
||
|
std::ostringstream ostr;
|
||
|
ostr << "[" << Files[tok->FileIndex] << ":" << tok->linenr << "]";
|
||
|
return ostr.str();
|
||
|
}
|
||
|
//---------------------------------------------------------------------------
|
||
|
|
||
|
void ReportErr(const std::string errmsg)
|
||
|
{
|
||
|
std::cerr << errmsg << std::endl;
|
||
|
}
|
||
|
//---------------------------------------------------------------------------
|
||
|
|