diff options
author | Ken Martin <ken.martin@kitware.com> | 2006-05-12 18:12:13 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2006-05-12 18:12:13 (GMT) |
commit | cac30b5ff8f7034b5290700a4dee28c84e001ac9 (patch) | |
tree | 1fce61b7bd143361ff8be6861fde27abb1732e10 /Source/cmVTKWrapPythonCommand.cxx | |
parent | daa37f116340fa86c1a511847fe65ad999095fa0 (diff) | |
download | CMake-cac30b5ff8f7034b5290700a4dee28c84e001ac9.zip CMake-cac30b5ff8f7034b5290700a4dee28c84e001ac9.tar.gz CMake-cac30b5ff8f7034b5290700a4dee28c84e001ac9.tar.bz2 |
STYLE: fix line length
Diffstat (limited to 'Source/cmVTKWrapPythonCommand.cxx')
-rw-r--r-- | Source/cmVTKWrapPythonCommand.cxx | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/Source/cmVTKWrapPythonCommand.cxx b/Source/cmVTKWrapPythonCommand.cxx index 886a4ad..fb2653e 100644 --- a/Source/cmVTKWrapPythonCommand.cxx +++ b/Source/cmVTKWrapPythonCommand.cxx @@ -76,7 +76,8 @@ bool cmVTKWrapPythonCommand::InitialPass(std::vector<std::string> const& } std::string srcName = cmSystemTools::GetFilenameWithoutExtension(*j); std::string newName = srcName + "Python"; - file.SetName(newName.c_str(), this->Makefile->GetCurrentOutputDirectory(), + file.SetName(newName.c_str(), + this->Makefile->GetCurrentOutputDirectory(), "cxx",false); std::string hname = cdir + "/" + srcName + ".h"; this->WrapHeaders.push_back(hname); @@ -94,7 +95,8 @@ bool cmVTKWrapPythonCommand::InitialPass(std::vector<std::string> const& cfile.SetName(initName.c_str(), this->Makefile->GetCurrentOutputDirectory(), "cxx",false); this->Makefile->AddSource(cfile); - this->Makefile->AddDefinition(this->SourceList.c_str(), sourceListValue.c_str()); + this->Makefile->AddDefinition(this->SourceList.c_str(), + sourceListValue.c_str()); return true; } @@ -196,8 +198,8 @@ bool cmVTKWrapPythonCommand::WriteInit(const char *kitName, for (i = 0; i < classes.size(); i++) { #ifdef _WIN32 - fprintf(fout, - "extern \"C\" {__declspec( dllexport) PyObject *PyVTKClass_%sNew(char *); }\n",classes[i].c_str()); + fprintf(fout, "extern \"C\" {__declspec( dllexport) " + "PyObject *PyVTKClass_%sNew(char *); }\n", classes[i].c_str()); #else fprintf(fout,"extern \"C\" {PyObject *PyVTKClass_%sNew(char *); }\n", classes[i].c_str()); @@ -229,8 +231,8 @@ bool cmVTKWrapPythonCommand::WriteInit(const char *kitName, kitName); fprintf(fout," d = PyModule_GetDict(m);\n"); - fprintf(fout," if (!d) Py_FatalError(\"can't get dictionary for module %s!\");\n\n", - kitName); + fprintf(fout," if (!d) Py_FatalError" + "(\"can't get dictionary for module %s!\");\n\n", kitName); for (i = 0; i < classes.size(); i++) { @@ -238,7 +240,8 @@ bool cmVTKWrapPythonCommand::WriteInit(const char *kitName, classes[i].c_str()); fprintf(fout," if (-1 == PyDict_SetItemString(d, \"%s\", c))\n", classes[i].c_str()); - fprintf(fout," Py_FatalError(\"can't add class %s to dictionary!\");\n\n", + fprintf(fout, + " Py_FatalError(\"can't add class %s to dictionary!\");\n\n", classes[i].c_str()); } fprintf(fout,"}\n\n"); |