2007-05-24 15:07:30 +02:00
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
#ifndef CommonCheckH
|
|
|
|
#define CommonCheckH
|
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#include <string>
|
2008-02-16 16:46:32 +01:00
|
|
|
#include <sstream>
|
2007-05-24 15:07:30 +02:00
|
|
|
|
2008-03-22 21:14:25 +01:00
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
// Report errors..
|
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
|
2007-05-24 15:07:30 +02:00
|
|
|
struct TOKEN;
|
|
|
|
|
2008-03-16 14:17:43 +01:00
|
|
|
std::string FileLine(const TOKEN *tok);
|
2008-03-22 21:14:25 +01:00
|
|
|
|
2008-02-22 15:30:43 +01:00
|
|
|
extern bool OnlyReportUniqueErrors;
|
2007-05-24 15:07:30 +02:00
|
|
|
|
2008-03-22 18:09:08 +01:00
|
|
|
void ReportErr(const std::string &errmsg);
|
2008-02-16 16:46:32 +01:00
|
|
|
extern std::ostringstream errout;
|
2007-05-24 15:07:30 +02:00
|
|
|
|
2007-05-25 08:45:47 +02:00
|
|
|
|
2008-03-22 21:14:25 +01:00
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
// Classify tokens..
|
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
|
2007-05-25 08:45:47 +02:00
|
|
|
bool IsName(const char str[]);
|
|
|
|
bool IsNumber(const char str[]);
|
|
|
|
|
2007-07-20 08:20:31 +02:00
|
|
|
bool IsStandardType(const char str[]);
|
|
|
|
|
2008-03-22 21:14:25 +01:00
|
|
|
|
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
// Iterating through tokens..
|
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
|
2008-03-23 08:57:27 +01:00
|
|
|
bool setindentlevel( const TOKEN *tok, int &indentlevel, int endlevel );
|
2008-03-22 21:14:25 +01:00
|
|
|
|
|
|
|
|
2007-05-24 15:07:30 +02:00
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
#endif
|