From 41aa2f88108b189d709e5344b55cff9a903d3c33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 10 Dec 2008 19:14:38 +0000 Subject: [PATCH] Borland C++ : minor update to make the code compilable with borland c++ --- CheckOther.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CheckOther.cpp b/CheckOther.cpp index 262a5301f..f889d11a0 100644 --- a/CheckOther.cpp +++ b/CheckOther.cpp @@ -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 ) )