Borland C++ : minor update to make the code compilable with borland c++
This commit is contained in:
parent
ddd20a2977
commit
41aa2f8810
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/*
|
||||
* c++check - c/c++ syntax checking
|
||||
* Copyright (C) 2007 Daniel Marjamäki
|
||||
*
|
||||
|
@ -894,7 +894,7 @@ void CheckOther::functionVariableUsage()
|
|||
|
||||
if (TOKEN::Match(tok, "-=|+=|*=|/= %var%"))
|
||||
varUsage[ tok->strAt(1) ] |= USAGE_READ;
|
||||
|
||||
|
||||
if (TOKEN::Match(tok, "%var%") && (tok->next()->str()==")" || isOp(tok->next())))
|
||||
varUsage[ tok->str() ] |= USAGE_READ;
|
||||
|
||||
|
@ -908,7 +908,7 @@ void CheckOther::functionVariableUsage()
|
|||
std::string varname = it->first;
|
||||
unsigned int usage = it->second;
|
||||
|
||||
if (!isalpha(varname[0]))
|
||||
if (!std::isalpha(varname[0]))
|
||||
continue;
|
||||
|
||||
if ( ! ( usage & USAGE_DECLARE ) )
|
||||
|
|
Loading…
Reference in New Issue