From f42d2fbb806deb6e86216336d84170a4275b6b25 Mon Sep 17 00:00:00 2001 From: barre Date: Tue, 30 Jul 2002 14:33:02 +0000 Subject: [PATCH] =?utf8?q?FIX:=20la=20commande=20cr=E9ait=20du=20code=20C+?= =?utf8?q?+.=20Du=20code=20C=20devrait=20faire=20l'affaire.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Source/cmCreateTestSourceList.cxx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Source/cmCreateTestSourceList.cxx b/Source/cmCreateTestSourceList.cxx index 85b328f07..997d16719 100644 --- a/Source/cmCreateTestSourceList.cxx +++ b/Source/cmCreateTestSourceList.cxx @@ -3,8 +3,8 @@ Program: Insight Segmentation & Registration Toolkit Module: $RCSfile: cmCreateTestSourceList.cxx,v $ Language: C++ - Date: $Date: 2002-07-30 14:23:39 $ - Version: $Revision: 1.16 $ + Date: $Date: 2002-07-30 14:33:02 $ + Version: $Revision: 1.17 $ Copyright (c) 2002 Insight Consortium. All rights reserved. See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details. @@ -91,7 +91,8 @@ bool cmCreateTestSourceList::InitialPass(std::vector const& argsIn) fout << "#include \n" "#include \n" - "#include \n"; + "#include \n" + "#include \n"; if(extraInclude.size()) { fout << "#include \"" << extraInclude << "\"\n"; @@ -156,11 +157,12 @@ bool cmCreateTestSourceList::InitialPass(std::vector const& argsIn) "};\n" "\n" "// Allocate and create a lowercased copy of string\n" + "// (note that it has to be free'd manually)\n" "\n" "char* lowercase(const char *string)\n" "{\n" " char *new_string, *p;\n" - " new_string = new char[strlen(string) + 1];\n" + " new_string = (char *)malloc(sizeof(char) * (size_t)(strlen(string) + 1));\n" " if (!new_string)\n" " {\n" " return NULL;\n" @@ -235,9 +237,9 @@ bool cmCreateTestSourceList::InitialPass(std::vector const& argsIn) " {\n" " return (*cmakeGeneratedFunctionMapEntries[i].func)(ac - 1, av + 1);\n" " }\n" - " delete [] test_name;\n" + " free(test_name);\n" " }\n" - " delete [] arg;\n" + " free(arg);\n" " \n" " // If the test was not found but there is only one test, then\n" " // run it with the arguments\n" -- 2.11.4.GIT