"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Source/cmMathCommand.cxx" between
cmake-3.13.4.tar.gz and cmake-3.14.0-rc1.tar.gz

About: CMake is a cross-platform build system designed to build, test and package software. Release candidate.

cmMathCommand.cxx  (cmake-3.13.4):cmMathCommand.cxx  (cmake-3.14.0-rc1)
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */ file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmMathCommand.h" #include "cmMathCommand.h"
#include "cmExprParserHelper.h" #include "cmExprParserHelper.h"
#include "cmMakefile.h" #include "cmMakefile.h"
#include "cmMessageType.h"
#include "cm_kwiml.h" #include "cm_kwiml.h"
#include "cmake.h"
#include <stdio.h> #include <stdio.h>
class cmExecutionStatus; class cmExecutionStatus;
bool cmMathCommand::InitialPass(std::vector<std::string> const& args, bool cmMathCommand::InitialPass(std::vector<std::string> const& args,
cmExecutionStatus&) cmExecutionStatus&)
{ {
if (args.empty()) { if (args.empty()) {
this->SetError("must be called with at least one argument."); this->SetError("must be called with at least one argument.");
skipping to change at line 107 skipping to change at line 107
case NumericFormat::DECIMAL: case NumericFormat::DECIMAL:
CM_FALLTHROUGH; CM_FALLTHROUGH;
default: default:
fmt = "%" KWIML_INT_PRId64; fmt = "%" KWIML_INT_PRId64;
break; break;
} }
sprintf(buffer, fmt, helper.GetResult()); sprintf(buffer, fmt, helper.GetResult());
std::string const& w = helper.GetWarning(); std::string const& w = helper.GetWarning();
if (!w.empty()) { if (!w.empty()) {
this->Makefile->IssueMessage(cmake::AUTHOR_WARNING, w); this->Makefile->IssueMessage(MessageType::AUTHOR_WARNING, w);
} }
this->Makefile->AddDefinition(outputVariable, buffer); this->Makefile->AddDefinition(outputVariable, buffer);
return true; return true;
} }
 End of changes. 3 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)