STYLE: fix line length

This commit is contained in:
Ken Martin 2006-05-11 10:45:33 -04:00
parent 6e64163019
commit 039ec75730
3 changed files with 10 additions and 17 deletions

View File

@ -121,7 +121,8 @@ This file must be translated to C and modified to build everywhere.
Run bison like this: Run bison like this:
bison --yacc --name-prefix=cmExpr_yy --defines=cmExprParserTokens.h -ocmExprParser.cxx cmExprParser.y bison --yacc --name-prefix=cmExpr_yy --defines=cmExprParserTokens.h
-ocmExprParser.cxx cmExprParser.y
Modify cmExprParser.cxx: Modify cmExprParser.cxx:
- remove TABs - remove TABs
@ -161,7 +162,8 @@ static void cmExprError(yyscan_t yyscanner, const char* message);
#endif #endif
#ifdef _MSC_VER #ifdef _MSC_VER
# pragma warning (disable: 4102) /* Unused goto label. */ # pragma warning (disable: 4102) /* Unused goto label. */
# pragma warning (disable: 4065) /* Switch statement contains default but no case. */ # pragma warning (disable: 4065) /* Switch statement contains default but
no case. */
#endif #endif

View File

@ -72,7 +72,8 @@ int cmExprParserHelper::ParseString(const char* str, int verb)
if ( Verbose ) if ( Verbose )
{ {
std::cerr << "Expanding [" << str << "] produced: [" << this->Result << "]" << std::endl; std::cerr << "Expanding [" << str << "] produced: ["
<< this->Result << "]" << std::endl;
} }
return 1; return 1;
} }
@ -109,19 +110,8 @@ int cmExprParserHelper::LexInput(char* buf, int maxlen)
void cmExprParserHelper::Error(const char* str) void cmExprParserHelper::Error(const char* str)
{ {
unsigned long pos = static_cast<unsigned long>(this->InputBufferPos); 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; cmOStringStream ostr;
ostr << str << " (" << pos << ")"; 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(); this->ErrorString = ostr.str();
} }

View File

@ -139,9 +139,10 @@ void cmFLTKWrapUICommand::FinalPass()
std::string msg = std::string msg =
"In CMake 2.2 the FLTK_WRAP_UI command sets a variable to the list of " "In CMake 2.2 the FLTK_WRAP_UI command sets a variable to the list of "
"source files that should be added to your executable or library. It " "source files that should be added to your executable or library. It "
"appears that you have not added these source files to your target. You " "appears that you have not added these source files to your target. "
"should change your CMakeLists.txt file to directly add the generated " "You should change your CMakeLists.txt file to "
"files to the target. For example FTLK_WRAP_UI(foo src1 src2 src3) " "directly add the generated files to the target. "
"For example FTLK_WRAP_UI(foo src1 src2 src3) "
"will create a variable named foo_FLTK_UI_SRCS that contains the list " "will create a variable named foo_FLTK_UI_SRCS that contains the list "
"of sources to add to your target when you call ADD_LIBRARY or " "of sources to add to your target when you call ADD_LIBRARY or "
"ADD_EXECUTABLE. For now CMake will add the sources to your target " "ADD_EXECUTABLE. For now CMake will add the sources to your target "