# HG changeset patch # User lbessard # Date 1169804940 -3600 # Node ID 60441122e12136df8db529f9c8a7d8ca6d77a548 # Parent 68524f7c58b595308e7c37925d433d61e64a074a LGPL copyright on generated files removed diff -r 68524f7c58b5 -r 60441122e121 objdictgen/gen_cfile.py --- a/objdictgen/gen_cfile.py Fri Jan 26 08:54:02 2007 +0100 +++ b/objdictgen/gen_cfile.py Fri Jan 26 10:49:00 2007 +0100 @@ -1,27 +1,25 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -copyright_notice="""/* -This file is part of CanFestival, a library implementing CanOpen Stack. - -Copyright (C): Edouard TISSERANT and Francis DUPIN - -See COPYING file for copyrights details. - -This library is free software; you can redistribute it and/or -modify it under the terms of the GNU Lesser General Public -License as published by the Free Software Foundation; either -version 2.1 of the License, or (at your option) any later version. - -This library is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -Lesser General Public License for more details. - -You should have received a copy of the GNU Lesser General Public -License along with this library; if not, write to the Free Software -Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -*/ -""" + +#This file is part of CanFestival, a library implementing CanOpen Stack. +# +#Copyright (C): Edouard TISSERANT and Francis DUPIN +# +#See COPYING file for copyrights details. +# +#This library is free software; you can redistribute it and/or +#modify it under the terms of the GNU Lesser General Public +#License as published by the Free Software Foundation; either +#version 2.1 of the License, or (at your option) any later version. +# +#This library is distributed in the hope that it will be useful, +#but WITHOUT ANY WARRANTY; without even the implied warranty of +#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +#Lesser General Public License for more details. +# +#You should have received a copy of the GNU Lesser General Public +#License along with this library; if not, write to the Free Software +#Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA from node import * from types import * @@ -328,8 +326,8 @@ texts["EntryName"] = entry_infos["name"] indexContents[0x1016] = """\n/* index 0x1016 : %(EntryName)s */ UNS8 %(NodeName)s_highestSubIndex_obj1016 = 0; - UNS32 %(NodeName)s_obj1016[0]; - subindex %(NodeName)s_Index1016[0]; + UNS32 %(NodeName)s_obj1016[]; + subindex %(NodeName)s_Index1016[]; """%texts if texts["nombre"] > 0: strTimers = "TIMER_HANDLE %(NodeName)s_heartBeatTimers[%(nombre)d] = {TIMER_NONE,};\n"%texts @@ -381,7 +379,7 @@ # Write File Content #------------------------------------------------------------------------------- - fileContent = copyright_notice + generated_tag + """ + fileContent = generated_tag + """ #include "%s" """%(headerfilepath) @@ -463,7 +461,7 @@ # Write Header File Content #------------------------------------------------------------------------------- - HeaderFileContent = copyright_notice + generated_tag + """ + HeaderFileContent = generated_tag + """ #include "data.h" // prototypes of function provided by object dictionnary