From e376e2d6a81e1fb2e8afc1edb1fcfdcb10b027e7 Mon Sep 17 00:00:00 2001 From: marha Date: Tue, 3 Nov 2009 13:35:24 +0000 Subject: - Solved problem in generated error string when build-command failed. - Strip function now strips all white space (including \r and \n) --- tools/mhmake/src/functions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/mhmake/src/functions.cpp') diff --git a/tools/mhmake/src/functions.cpp b/tools/mhmake/src/functions.cpp index 5b59044c7..6ba64c3c1 100644 --- a/tools/mhmake/src/functions.cpp +++ b/tools/mhmake/src/functions.cpp @@ -622,10 +622,10 @@ string mhmakefileparser::f_strip(const string & Arg) const { string::const_iterator pFirst=Arg.begin(); string::const_iterator pLast=Arg.end(); - while (strchr(" \t",*pFirst) && pFirst!=pLast) pFirst++; + while (strchr(" \t\r\n",*pFirst) && pFirst!=pLast) pFirst++; if (pFirst==pLast) return ""; - while (strchr(" \t",*(--pLast))); + while (strchr(" \t\r\n",*(--pLast))); pLast++; return Arg.substr(pFirst-Arg.begin(),pLast-pFirst); } -- cgit v1.2.3