![]() |
Re: Eure Datei Header
Also ich habe meißtens so einen:
Code:
In Delphi benutze ich eigentlich nie einen Header, da ich die Sources meißtens nicht veröffentliche.
/***************************************************************************
* functions.php * ------------------- * begin : Friday, Dec 16, 2005 * copyright : (C) 2006 Manuel Faux * email : [email]faux@*.com[/email] * website : [url]www.e-faux.com[/url] * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * version : 2.1 * date : 11:30 2006-05-13 * description : This file is a collection of classes and often * used functions which are important for the whole * page. ***************************************************************************/ Grüße Faux |
Re: Eure Datei Header
Guten Abend!
Mein File-Header sieht so aus:
Delphi-Quellcode:
Eventuell habe ich noch eine Zeile mit der verwendeteten Lizenz (MPL, GPL, etc.).
{*******************************************************}
{ } { PROJEKTNAME } { } { Copyright (c) 2006 Nagl Andreas } { } {*******************************************************} mfg, Andreas |
Re: Eure Datei Header
Das ist so mein aktuelles Muster:
Delphi-Quellcode:
Wobei da nicht genutztes auch weggelassen wird und sowas wie 'ne History/ChangeLog würde dann darunter als eigener Block kommen (nach der Zeile "Unit xxx;"), aber da ich eh nie mit solchen Dingen hinterher komme, gibt's die meistens nicht.
(**FNSFI*Firma/Person*Projektkennung*Dateikennung*Status*Hash** )
(**RF*nötigeDatei*...****************************************** ) (**SF*dazugehörigeDatei*Hash*...******************************* ) ( ) ( Copyright (c) ... ) ( ) ( Project Projektname - Zusatz ) ( Filename Dateiname [Originaldateiname] ) ( Version Version ) ( Date Datum ) ( URL Downloadseite ) ( ) ( Password Passwort ) ( ) (************************************************************** ) ( ) ( Source(s): ) ( ) ( Name [Nickname] Homepage eMail ) ( ) ( >>> more information before the corresponding code sections ) ( >>> {** name(s) - info **} ) ( ) (***************************************************************) Es ist so gestaltet, das es auch "relativ" leicht von 'nem Programm eingelesen werden kann ... 's macht sich halt gut, wenn man die verschiedenen Versionen nicht selber Verwalten muß und ein Überblick welche Datei von Welcher benötigt wird ist auch schon mal ganz praktisch ^^ Hier ma so'n Aktueller.
Delphi-Quellcode:
(**FNSFI*FNSEnt*GEN*MEMORY*USE*1Pval1JdxO%************************** )
(**RF*VERSION*.CONSTS*TYPES*THREAD*INIT*SYSTEM*RESOURCES*BINARY***** ) (**RF*MATHB*FORMS*MSC.WINERROR************************************** ) ( ) ( Copyright (c) 1997-2006 FNS Enterprize's™ ) ( 2003-2006 himitsu @ Delphi-PRAXiS ) ( ) ( Project Generals ) ( Filename FNS_Memory.pas ) ( Version v2.1 ) ( Date 02.05.2006 ) ( ) (******************************************************************* ) ( ) ( Source(s): ) ( ) ( Pierre le Riche [url]http://fastmm.sourceforge.net[/url] [email]plr@psd.co.za[/email] ) ( ) ( >>> more information before the corresponding code sections ) ( >>> {** name(s) -- info **} ) ( ) (********************************************************************) |
Re: Eure Datei Header
Meine Header sehen meist so oder ähnlich aus:
Code:
bzw. mit Lizenz
////////////////////////////////////////////////////////////////////////////////
// // // Release 1.1.0 - 2006-05-25 // // // // Copyright (C) 2006 by Lars Kiesow // // [url]http://www.larskiesow.de[/url] // // // ////////////////////////////////////////////////////////////////////////////////
Code:
Allerdings variiert er auch immer ein wenig.
{
Release: 2006-05-09 Copyright (c) 2006, Lars Kiesow All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of the author nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. } |
Re: Eure Datei Header
wie verhält sich das eigentlich genau mit dem Copyright, reicht ein solcher Header aus um sicherzustellen, dass nichts lizenzwiedrig kopiert werden kann?
Weil eigentlich kann jemand den Code kopieren den Header anpassen und dann steht Aussage gegen Aussage, oder sehe ich das falsch? kann man das irgendwie absichern (eine unfälschbare Signatur oder sowas)? Gruß Frank |
Re: Eure Datei Header
Hi!
Kurz und knapp:
Delphi-Quellcode:
{* Unit myTypes - Frederic Kerber (Email-Adresse)
eigene Typ-Deklarationen, die im Projekt verwendet werden *} Ciao Frederic |
Re: Eure Datei Header
Zitat:
Gruß Frank |
Re: Eure Datei Header
Hi!
Hatte das nicht auf deinen Beitrag sondern allgemein auf das Thema bezogen! Ciao Frederic |
Re: Eure Datei Header
Zitat:
|
Re: Eure Datei Header
Ihr kommt gerade etwas vom Thema ab, glaube ich.
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 00:55 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz