AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Eure Datei Header

Ein Thema von Luckie · begonnen am 26. Mai 2006 · letzter Beitrag vom 30. Mai 2006
Antwort Antwort
Seite 3 von 3     123   
bigg
(Gast)

n/a Beiträge
 
#21

Re: Eure Datei Header

  Alt 30. Mai 2006, 00:02
Mir fällt grade auf, dass ich die Rangfolgen etwas anpassen könnte.

Delphi-Quellcode:
{
  #######################################################################
  #                                                                    #
  #    ____                __                                __      #
  #    /\  _`\            /\ \                              /\ \      #
  #    \ \ \/\_\    ___    \_\ \      __  _____      __      \_\ \    #
  #    \ \ \/_/_  / __`\  /'_` \  /'__`\/\ '__`\  /'__`\    /'_` \    #
  #      \ \ \L\ \/\ \L\ \/\ \L\ \ /\  __/\ \ \L\ \/\ \L\.\_ /\ \L\ \  #
  #      \ \____/\ \____/\ \___,_\\ \____\\ \ ,__/\ \__/.\_\\ \___,_\  #
  #        \/___/  \/___/  \/__,_ / \/____/ \ \ \/  \/__/\/_/ \/__,_ /  #
  #                                          \ \_\                      #
  #                                          \/_/                      #
  #                                                                    #
  #######################################################################
  #                                                                    #
  #    Letze Änderung: 15.05.2006                                      #
  #    Version: 1.0.0.30                                                #
  #    Autor: Stefan Hollenbach                                        #
  #    Lizenz: General Public License                                  #
  #                                                                    #
  #    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.          #
  #                                                                    #
  #    This program 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 General Public License for more details.                    #
  #                                                                    #
  #######################################################################
}
  Mit Zitat antworten Zitat
jensw_2000
(Gast)

n/a Beiträge
 
#22

Re: Eure Datei Header

  Alt 30. Mai 2006, 05:38
Delphi-Quellcode:
unit uCommon ;

interface

uses uProjectClasses;
...
...
  Mit Zitat antworten Zitat
mquadrat

Registriert seit: 13. Feb 2004
1.113 Beiträge
 
Delphi XE2 Professional
 
#23

Re: Eure Datei Header

  Alt 30. Mai 2006, 09:04
Ich benutz gar keine Header. Kosten nur Zeit und bringen nichts Abgesehen davon entwickel ich auch nicht Open Source.
  Mit Zitat antworten Zitat
NicoDE
(Gast)

n/a Beiträge
 
#24

Re: Eure Datei Header

  Alt 30. Mai 2006, 09:15
Klassischer Header für die öffentlichen Ein-Unit-Projekte. Ab einer gewissen Größe wird die History in eine eigene Datei ausgelagert...
Delphi-Quellcode:
////////////////////////////////////////////////////////////////////////////////
//
// BIOS Helper for Delphi
//
// BIOS related utilities for Win32(i386) and Linux
//
////////////////////////////////////////////////////////////////////////////////
//
// The Original Code is:
// BiosHelp.pas, released 2001-09-02.
//
// The Initial Developer of the Original Code is Nico Bendlin.
//
// Portions created by Nico Bendlin are
// Copyright (c) 2001-2005 Nico Bendlin. All Rights Reserved.
//
// Contributor(s):
// Nico Bendlin <nicode@gmx.net>
//
// The contents of this file are subject to the Mozilla Public License Version
// 1.1 (the "License"); you may not use this file except in compliance with the
// License. You may obtain a copy of the License at [url]http://www.mozilla.org/MPL/[/url]
//
// Software distributed under the License is distributed on an "AS IS" basis,
// WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
// the specific language governing rights and limitations under the License.
//
// Alternatively, the contents of this file may be used under the terms of
// either the GNU General Public License Version 2 or later (the "GPL"), or
// the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
// in which case the provisions of the GPL or the LGPL are applicable instead
// of those above. If you wish to allow use of your version of this file only
// under the terms of either the GPL or the LGPL, and not to allow others to
// use your version of this file under the terms of the MPL, indicate your
// decision by deleting the provisions above and replace them with the notice
// and other provisions required by the GPL or the LGPL. If you do not delete
// the provisions above, a recipient may use your version of this file under
// the terms of any one of the MPL, the GPL or the LGPL.
//
////////////////////////////////////////////////////////////////////////////////
//
// Revision:
//
// 2003-02-15 2.00 [NicoDE]
// - generic dump method completely rewritten
// - default range is now E000:0000-F000:FFFF
// 2003-03-13 2.10 [NicoDE]
// - introduced basic Linux support (/dev/mem)
// 2003-04-10 2.20 [NicoDE]
// - changes for Borland CBuilder compability
// 2005-09-26 3.00 [NicoDE]
// - added support for Windows XP x64 Edition
// - default range is now C000:0000-F000:FFFF
// - rdmAutomatic behavior changed for WinNT!
//
////////////////////////////////////////////////////////////////////////////////
ps: ich verwende keine Block-Kommentare, da einige Header-Templates u.a. für C und C++ verwendet werden.
  Mit Zitat antworten Zitat
Benutzerbild von himitsu
himitsu

Registriert seit: 11. Okt 2003
Ort: Elbflorenz
43.153 Beiträge
 
Delphi 12 Athens
 
#25

Re: Eure Datei Header

  Alt 30. Mai 2006, 11:50
Ach ja ... zu den langen Texten (Copyright / Lizenzinfo und so) ... das liegt bei meinem aktuellen "Großprojekt" in 'ner Extradatei (was ich bei weiteren "Mehrunitprojekten" wohl auch wieder so machen werde ... irgendwie war mir das Platzverschwebdubg in allen Dateien diesen langen Text aufzuführen (vorallem da ich für diesen eh noch keine endgültige Fassung hab, die mir gefällt -.-'')


Zitat von _frank_:
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
Nein, denn wie soll man denn etwas unfälschbares in eine reine (unverschlüsselte) Textdatei reinbekommen - schließlich kann darin ja jetzer mit 'nem einfachen Texteditor rein und was ändern.

Also solche Header reichen wohl aus, aber sicherstellen können die halt nüschts.

Wie halt schon gesagt wurde, kannst du dann zwar versuchen zu Klagen und mußt dann nur noch irgendwie nachweisen, daß er/sie von dir geklaut hat.
Garbage Collector ... Delphianer erzeugen keinen Müll, also brauchen sie auch keinen Müllsucher.
my Delphi wish list : BugReports/FeatureRequests
  Mit Zitat antworten Zitat
Ghostwalker

Registriert seit: 16. Jun 2003
Ort: Schönwald
1.299 Beiträge
 
Delphi 10.3 Rio
 
#26

Re: Eure Datei Header

  Alt 30. Mai 2006, 15:20
Also bei mir sieht das derzeit so aus:


Delphi-Quellcode:
{-----------------------------------------------------------------------------
Unit Name:    blafasel.pas
Author:      Uwe Rupprecht
Date:        21-Mai-2006
Version:      0.0.1
Purpose:      class for blafasl
History:      -
Description:

class for blafasl, that tut irgendwas
-----------------------------------------------------------------------------}
Groß Copyright-Infos halt ich für unsinnig das in einen Kommentar reinzupacken,
da es das ganze einfach nur unübersichtlich macht. Wenn ich (z.B. bei einem OS-Projekt)
in eine Unit gug, dann will ich wissen für was die gut ist und nicht unter welcher Lizenz das
ganze steht. Dafür sollte eine eigene Textdatei beigefügt werden.
Uwe
e=mc² or energy = milk * coffee²
  Mit Zitat antworten Zitat
Antwort Antwort
Seite 3 von 3     123   


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 08:30 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz