From 11f62e3ee5ac08a3dcc8d907ec448d3b989b1566 Mon Sep 17 00:00:00 2001 From: David Rose Date: Wed, 18 Feb 2009 23:26:45 +0000 Subject: [PATCH] enable new license --- dtool/src/newheader/newheader.cxx | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/dtool/src/newheader/newheader.cxx b/dtool/src/newheader/newheader.cxx index 837d6907f9..49563a8210 100755 --- a/dtool/src/newheader/newheader.cxx +++ b/dtool/src/newheader/newheader.cxx @@ -18,34 +18,34 @@ #include #include -char *cxx_style = +const char *cxx_style = "// Filename: %s\n" "// Created by: %s (%s)\n" "//\n" "////////////////////////////////////////////////////////////////////\n" "//\n" -// PANDA 3D SOFTWARE -// Copyright (c) Carnegie Mellon University. All rights reserved. -// -// All use of this software is subject to the terms of the revised BSD -// license. You should have received a copy of this license along -// with this source code in a file named "LICENSE." +"// PANDA 3D SOFTWARE\n" +"// Copyright (c) Carnegie Mellon University. All rights reserved.\n" +"//\n" +"// All use of this software is subject to the terms of the revised BSD\n" +"// license. You should have received a copy of this license along\n" +"// with this source code in a file named \"LICENSE.\"\n" "//\n" "////////////////////////////////////////////////////////////////////\n" "\n"; -char *c_style = +const char *c_style = "/* Filename: %s\n" " * Created by: %s (%s)\n" " *\n" " * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\n" " *\n" -// PANDA 3D SOFTWARE -// Copyright (c) Carnegie Mellon University. All rights reserved. -// -// All use of this software is subject to the terms of the revised BSD -// license. You should have received a copy of this license along -// with this source code in a file named "LICENSE." +" * PANDA 3D SOFTWARE\n" +" * Copyright (c) Carnegie Mellon University. All rights reserved.\n" +" *\n" +" * All use of this software is subject to the terms of the revised BSD\n" +" * license. You should have received a copy of this license along\n" +" * with this source code in a file named \"LICENSE.\"\n" " *\n" " * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */\n" "\n"; @@ -66,7 +66,7 @@ FileDef file_def[] = { void generate_header(const char *header, const string &filename) { - char *username = getenv("USER"); + const char *username = getenv("USER"); if (username == NULL) { username = ""; }