|
|
@@ -72,7 +72,8 @@ int cmExprParserHelper::ParseString(const char* str, int verb)
|
|
|
|
|
|
if ( Verbose )
|
|
|
{
|
|
|
- std::cerr << "Expanding [" << str << "] produced: [" << this->Result << "]" << std::endl;
|
|
|
+ std::cerr << "Expanding [" << str << "] produced: ["
|
|
|
+ << this->Result << "]" << std::endl;
|
|
|
}
|
|
|
return 1;
|
|
|
}
|
|
|
@@ -109,19 +110,8 @@ int cmExprParserHelper::LexInput(char* buf, int maxlen)
|
|
|
void cmExprParserHelper::Error(const char* str)
|
|
|
{
|
|
|
unsigned long pos = static_cast<unsigned long>(this->InputBufferPos);
|
|
|
- //fprintf(stderr, "Argument Parser Error: %s (%lu / Line: %d)\n", str, pos, this->CurrentLine);
|
|
|
cmOStringStream ostr;
|
|
|
ostr << str << " (" << pos << ")";
|
|
|
- /*
|
|
|
- int cc;
|
|
|
- std::cerr << "String: [";
|
|
|
- for ( cc = 0; cc < 30 && *(this->InputBuffer.c_str() + this->InputBufferPos + cc);
|
|
|
- cc ++ )
|
|
|
- {
|
|
|
- std::cerr << *(this->InputBuffer.c_str() + this->InputBufferPos + cc);
|
|
|
- }
|
|
|
- std::cerr << "]" << std::endl;
|
|
|
- */
|
|
|
this->ErrorString = ostr.str();
|
|
|
}
|
|
|
|