summaryrefslogtreecommitdiffstats
path: root/Source/cmVTKWrapPythonCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2002-10-23 22:03:27 (GMT)
committerBrad King <brad.king@kitware.com>2002-10-23 22:03:27 (GMT)
commit1f6a3c67b1cc225f9f6873278c117820a2dee3b2 (patch)
treeec8ee490a7a800b5617f92ce56bb4a9124668ad3 /Source/cmVTKWrapPythonCommand.cxx
parent48b74fd034c3acc27b96957d552715697156655c (diff)
downloadCMake-1f6a3c67b1cc225f9f6873278c117820a2dee3b2.zip
CMake-1f6a3c67b1cc225f9f6873278c117820a2dee3b2.tar.gz
CMake-1f6a3c67b1cc225f9f6873278c117820a2dee3b2.tar.bz2
ENH: Added reference to Copyright.txt. Removed old reference to ITK copyright. Changed program name to CMake instead of Insight in source file header. Also removed tabs.
Diffstat (limited to 'Source/cmVTKWrapPythonCommand.cxx')
-rw-r--r--Source/cmVTKWrapPythonCommand.cxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/Source/cmVTKWrapPythonCommand.cxx b/Source/cmVTKWrapPythonCommand.cxx
index cae135c..cef310f 100644
--- a/Source/cmVTKWrapPythonCommand.cxx
+++ b/Source/cmVTKWrapPythonCommand.cxx
@@ -1,13 +1,13 @@
/*=========================================================================
- Program: Insight Segmentation & Registration Toolkit
+ Program: CMake - Cross-Platform Makefile Generator
Module: $RCSfile$
Language: C++
Date: $Date$
Version: $Revision$
- Copyright (c) 2002 Insight Consortium. All rights reserved.
- See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
+ Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
+ See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
@@ -178,9 +178,9 @@ bool cmVTKWrapPythonCommand::WriteInit(const char *kitName,
fprintf(fout,"#include <string.h>\n");
fprintf(fout,"#include \"Python.h\"\n\n");
fprintf(fout,"// Handle compiler warning messages, etc.\n"
- "#if defined( _MSC_VER ) && !defined(VTK_DISPLAY_WIN32_WARNINGS)\n"
- "#pragma warning ( disable : 4706 )\n"
- "#endif // Windows Warnings \n\n");
+ "#if defined( _MSC_VER ) && !defined(VTK_DISPLAY_WIN32_WARNINGS)\n"
+ "#pragma warning ( disable : 4706 )\n"
+ "#endif // Windows Warnings \n\n");
for (i = 0; i < classes.size(); i++)
{
@@ -192,7 +192,7 @@ bool cmVTKWrapPythonCommand::WriteInit(const char *kitName,
}
fprintf(fout,"\nstatic PyMethodDef Py%s_ClassMethods[] = {\n",
- kitName);
+ kitName);
fprintf(fout,"{NULL, NULL, 0, NULL}};\n\n");
#ifdef _WIN32
@@ -212,20 +212,20 @@ bool cmVTKWrapPythonCommand::WriteInit(const char *kitName,
fprintf(fout," static char modulename[] = \"lib%s\";\n",kitName);
#endif
fprintf(fout," m = Py_InitModule(modulename, Py%s_ClassMethods);\n",
- 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);
+ kitName);
for (i = 0; i < classes.size(); i++)
{
fprintf(fout," if ((c = PyVTKClass_%sNew(modulename)))\n",
classes[i].c_str());
fprintf(fout," if (-1 == PyDict_SetItemString(d, \"%s\", c))\n",
- classes[i].c_str());
+ classes[i].c_str());
fprintf(fout," Py_FatalError(\"can't add class %s to dictionary!\");\n\n",
- classes[i].c_str());
+ classes[i].c_str());
}
fprintf(fout,"}\n\n");
fclose(fout);