summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.cxx
diff options
context:
space:
mode:
authorBerk Geveci <berk.geveci@kitware.com>2001-11-29 21:44:22 (GMT)
committerBerk Geveci <berk.geveci@kitware.com>2001-11-29 21:44:22 (GMT)
commit521d8d9410c7c7bb5958357933c9759035f51828 (patch)
treebe128f3ce5a15f3aedd02601de35a2018cbc6cbc /Source/cmSystemTools.cxx
parente57a982136f654e21607ce8db0d890dfd65a0878 (diff)
downloadCMake-521d8d9410c7c7bb5958357933c9759035f51828.zip
CMake-521d8d9410c7c7bb5958357933c9759035f51828.tar.gz
CMake-521d8d9410c7c7bb5958357933c9759035f51828.tar.bz2
Improvements to the curses interface.
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r--Source/cmSystemTools.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index c3cd0cc..f72992c 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -522,8 +522,10 @@ const char *cmSystemTools::ConvertToWindowsSlashesAndCleanUp(std::string& path)
bool cmSystemTools::ParseFunction(std::ifstream& fin,
std::string& name,
std::vector<std::string>& arguments,
- const char* filename)
+ const char* filename,
+ bool& parseError)
{
+ parseError = false;
name = "";
arguments = std::vector<std::string>();
const int BUFFER_SIZE = 4096;
@@ -586,6 +588,7 @@ bool cmSystemTools::ParseFunction(std::ifstream& fin,
}
else
{
+ parseError = true;
cmSystemTools::Error("Parse error in read function missing end )\nIn File: ",
filename, "\nCurrent line:", inbuffer);
return false;
@@ -595,6 +598,7 @@ bool cmSystemTools::ParseFunction(std::ifstream& fin,
}
else
{
+ parseError = true;
cmSystemTools::Error("Parse error in read function\nIn file:",
filename, "\nCurrent line:", inbuffer);
return false;