Changeset 148

Show
Ignore:
Timestamp:
06/01/07 14:19:25 (1 year ago)
Author:
takkaria
Message:

Clean up some licence headers, though it's still an incomplete job.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/cmd4.c

    r135 r148  
    11/* 
    2  * Copyright (c) 1997 Ben Harrison, James E. Wilson, Robert A. Koeneke 
     2 * File: cmd4.c 
     3 * Purpose: Various kinds of browsing functions. 
    34 * 
    4  * This software may be copied and distributed for educational, research, 
    5  * and not for profit purposes provided that this copyright and statement 
    6  * are included in all such copies.  Other copyrights may also apply. 
     5 * Copyright (c) 1997-2007 Robert A. Koeneke, James E. Wilson, Ben Harrison, 
     6 * Eytan Zweig, Andrew Doull, Pete Mack. 
    77 * 
    8  * UnAngband (c) 2001-6 Andrew Doull. Modifications to the Angband 2.9.1 
    9  * source code are released under the Gnu Public License. See www.fsf.org 
    10  * for current GPL license details. Addition permission granted to 
    11  * incorporate modifications in all Angband variants as defined in the 
    12  * Angband variants FAQ. See rec.games.roguelike.angband for FAQ. 
     8 * This work is free software; you can redistribute it and/or modify it 
     9 * under the terms of either: 
    1310 * 
    14  */ 
    15  
    16 /* 
    17  * Code cleanup -- Pete Mack 02/2007 (No copyright)  
     11 * a) the GNU General Public License as published by the Free Software 
     12 *    Foundation, version 2, or 
     13 * 
     14 * b) the "Angband licence": 
     15 *    This software may be copied and distributed for educational, research, 
     16 *    and not for profit purposes provided that this copyright and statement 
     17 *    are included in all such copies.  Other copyrights may also apply. 
     18 */ 
     19#include "angband.h" 
     20#include "ui.h" 
     21 
     22 
     23/* 
     24 * Code cleanup -- Pete Mack 02/2007 
    1825 * Use proper function tables and database methodology. 
    1926 * Tables are now tables, not multiline conditionals. 
     
    2128 * Function tables are used for iteration where reasonable. (C-style class model) 
    2229 */ 
    23  
    24 #include "angband.h" 
    25 #include "ui.h" 
    2630 
    2731 
     
    40484052        message_flush(); 
    40494053} 
     4054 
    40504055/* 
    40514056 * Hack -- save a screen dump to a file 
  • trunk/src/main-crb.c

    r141 r148  
    1  
    21/* 
    32 * Copyright (c) 1997-2006 Ben Harrison, Keith Randall, Peter Ammon, 
     
    3130 * Carbon code adapted from works by Peter Ammon and Ron Anderson. 
    3231 * Much modernization and graphics/sound improvement done by pelpel. 
     32 * 
     33 * 
     34 * Graphics code originally adapted from an extremely minimal subset of 
     35 * "Sprite World II" <http://www.spriteworld.org/>, which is under the 
     36 * following licence: 
     37 * 
     38 *    This software is provided 'as-is', without any express or implied 
     39 *    warranty. In no event will the authors be held liable for any damages 
     40 *    arising from the use of this software. 
     41 * 
     42 *    Permission is granted to anyone to use this software for any purpose, 
     43 *    including commercial applications, and to alter it and redistribute it 
     44 *    freely, subject to the following restrictions: 
     45 * 
     46 *       1. The origin of this software must not be misrepresented; you must not 
     47 *       claim that you wrote the original software. If you use this software 
     48 *       in a product, an acknowledgment in the product documentation would be 
     49 *       appreciated but is not required. 
     50 * 
     51 *       2. Altered source versions must be plainly marked as such, and must not be 
     52 *       misrepresented as being the original software. 
     53 * 
     54 *       3. This notice may not be removed or altered from any source 
     55 *       distribution. 
     56 * (end of licence) 
     57 * 
    3358 * 
    3459 * Notes: 
  • trunk/src/main-gtk.c

    r53 r148  
    1 /* File: main-gtk.c */ 
    2  
    3 /* 
    4  * Copyright (c) 2000 Robert Ruehlmann 
     1/* 
     2 * File: main-gtk.c 
     3 * Purpose: Angband GTK2 port 
    54 * 
    6  * This software may be copied and distributed for educational, research, 
    7  * and not for profit purposes provided that this copyright and statement 
    8  * are included in all such copies. 
    9  */ 
    10  
     5 * Copyright (c) 2000-2007 Robert Ruehlmann, Andrew Sidwell, Shanonah Alkire 
     6 * 
     7 * This work is free software; you can redistribute it and/or modify it 
     8 * under the terms of either: 
     9 * 
     10 * a) the GNU General Public License as published by the Free Software 
     11 *    Foundation, version 2, or 
     12 * 
     13 * b) the "Angband licence": 
     14 *    This software may be copied and distributed for educational, research, 
     15 *    and not for profit purposes provided that this copyright and statement 
     16 *    are included in all such copies.  Other copyrights may also apply. 
     17 */ 
    1118#include "angband.h" 
    1219 
  • trunk/src/main-ros.c

    r141 r148  
    11/* 
    22 * File: main-ros.c 
     3 * Purpose: Support for RISC OS versions of Angband 
    34 * 
    4  * Abstract: Support for RISC OS versions of Angband, including support 
    5  * for multitasking and dynamic areas
     5 * Copyright (c) 2000-2007  Musus Umbra, Antony Sidwell, Thomas Harris, 
     6 * Andrew Sidwell, Ben Harrison
    67 * 
    7  * Authors: Musus Umbra, Antony Sidwell, Thomas Harris, Andrew Sidwell, 
    8  *          Ben Harrison, and others. 
     8 * This work is free software; you can redistribute it and/or modify it 
     9 * under the terms of either: 
    910 * 
    10  * Licences: Angband licence, GNU GPL version 2  
     11 * a) the GNU General Public License as published by the Free Software 
     12 *    Foundation, version 2, or 
    1113 * 
     14 * b) the "Angband licence": 
     15 *    This software may be copied and distributed for educational, research, 
     16 *    and not for profit purposes provided that this copyright and statement 
     17 *    are included in all such copies.  Other copyrights may also apply. 
     18 */ 
     19 
     20#ifdef __riscos 
     21 
     22#include "angband.h" 
     23 
     24/* 
     25 * Purpose: Support for RISC OS Angband 2.9.x onwards (and variants) 
    1226 * Current maintainer: Antony Sidwell <antony@isparp.co.uk>  (ajps) 
    13  */ 
    14  
    15 #ifdef __riscos 
    16  
    17 #include "angband.h" 
    18  
    19 /* 
    20  * Purpose: Support for RISC OS Angband 2.9.x onwards (and variants) 
    2127 * 
    2228 * NB: This code is still under continuous development - if you want to use 
     
    630636#define SYSTEM_FONT (&(fonts[0])) 
    631637 
    632                                                                                                                                  /* Term system variables */ 
     638/* Term system variables */ 
    633639static term_data data[MAX_TERM_DATA];   /* One per term */ 
    634640 
  • trunk/src/main-sdl.c

    r127 r148  
    1 /* File: main-sdl.c */ 
    2  
    3 /* 
    4  * Angband SDL port (c) 2007 Iain McFall (mcfall.iain@googlemail.com) 
    5  *  
    6  * Based on the sangband SDL port, by Leon Marrick & others. 
     1/* 
     2 * File: main-sdl.c 
     3 * Purpose: Angband SDL port  
    74 * 
     5 * Copyright (c) 2007 Ben Harrison, Gregory Velichansky, Eric Stevens, 
     6 * Leon Marrick, Iain McFall, and others 
    87 * 
     8 * This work is free software; you can redistribute it and/or modify it 
     9 * under the terms of either: 
     10 * 
     11 * a) the GNU General Public License as published by the Free Software 
     12 *    Foundation, version 2, or 
     13 * 
     14 * b) the "Angband licence": 
     15 *    This software may be copied and distributed for educational, research, 
     16 *    and not for profit purposes provided that this copyright and statement 
     17 *    are included in all such copies.  Other copyrights may also apply. 
     18 */ 
     19#include "angband.h" 
     20 
     21/* 
    922 * Comments and suggestions are welcome. The UI probably needs some 
    1023 * adjustment, and I need comments from you. 
     
    1326 for credits" or something 
    1427 */ 
    15  
    16  
    17 /* 
    18  * This program is free software; you can redistribute it and/or modify it 
    19  * under the terms of the GNU General Public License.  Parts may also be 
    20  * available under the terms of the Moria license.  For more details, see 
    21  * "/docs/copying.txt". 
    22  */ 
    23  
    2428 
    2529/* 
     
    102106 *   Windows machines. 
    103107 */ 
    104 #include "angband.h" 
    105108 
    106109#ifdef USE_SDL 
  • trunk/src/pathfind.c

    r69 r148  
    22 * File: pathfind.c 
    33 * Purpose: Pathfinding algorithm 
    4  * Author: Chris Cavalaria 
     4 * 
     5 * Copyright (c) 2004 Christophe Cavalaria 
     6 * 
     7 * This work is free software; you can redistribute it and/or modify it 
     8 * under the terms of either: 
     9 * 
     10 * a) the GNU General Public License as published by the Free Software 
     11 *    Foundation, version 2, or 
     12 * 
     13 * b) the "Angband licence": 
     14 *    This software may be copied and distributed for educational, research, 
     15 *    and not for profit purposes provided that this copyright and statement 
     16 *    are included in all such copies.  Other copyrights may also apply. 
    517 */ 
     18#include "angband.h" 
    619 
    7 #include "angband.h" 
    820 
    921/*** Constants ***/ 
    1022 
    11 /* Maximum size around the player to consider in the pathfinde */ 
     23/* Maximum size around the player to consider in the pathfinder */ 
    1224#define MAX_PF_RADIUS 50 
    1325 
  • trunk/src/randname.h

    r42 r148  
    11/* 
    2  * randname.h - random name generation 
    3  * Copyright (c) 2007 Antony Sidwell (antony@isparp.co.uk) and others, 
    4  * W. Sheldon Simms name generator originally in randart.c 
     2 * File: randname.h 
     3 * Purpose: Random name generation 
     4 * Based on W. Sheldon Simms name generator originally in randart.c 
    55 * 
    6  * This file is distributed under the terms of both the Angband licence and 
    7  * under the GPL licence (version 2 or any later version).  It may be  
    8  * redistributed under the terms of either licence.  
     6 * Copyright (c) 2007 Antony Sidwell and others 
     7 * 
     8 * This work is free software; you can redistribute it and/or modify it 
     9 * under the terms of either: 
     10 * 
     11 * a) the GNU General Public License as published by the Free Software 
     12 *    Foundation, version 2, or 
     13 * 
     14 * b) the "Angband licence": 
     15 *    This software may be copied and distributed for educational, research, 
     16 *    and not for profit purposes provided that this copyright and statement 
     17 *    are included in all such copies.  Other copyrights may also apply. 
    918 */ 
    1019 
  • trunk/src/ui.c

    r134 r148  
    1 /* File ui.c */ 
    2  
    31/* 
    4  * Copyright (c) 2007 Pete Mack and others 
    5  * This code released under the Gnu Public License. See www.fsf.org 
    6  * for current GPL license details. Addition permission granted to 
    7  * incorporate modifications in all Angband variants as defined in the 
    8  * Angband variants FAQ. See rec.games.roguelike.angband for FAQ. 
     2 * File: ui.c 
     3 * Purpose: Generic menu interaction functions 
     4 * 
     5 * Copyright (c) 2007 Pete Mack and others. 
     6 * 
     7 * This work is free software; you can redistribute it and/or modify it 
     8 * under the terms of either: 
     9 * 
     10 * a) the GNU General Public License as published by the Free Software 
     11 *    Foundation, version 2, or 
     12 * 
     13 * b) the "Angband licence": 
     14 *    This software may be copied and distributed for educational, research, 
     15 *    and not for profit purposes provided that this copyright and statement 
     16 *    are included in all such copies.  Other copyrights may also apply. 
    917 */ 
     18#include "angband.h" 
     19 
    1020 
    1121/* 
    12 Description: 
    13 Implementation of Extremely Basic Event Model. 
    14   Limits: 
    15     all events are of the concrete type event_type (see z-util.h),  
    16     which are supposed to model simple UI actions: 
    17         - < escape > 
    18         - keystroke 
    19         - mousepress 
    20         - select menu element 
    21         - move menu cursor 
    22         - back to parent (hierarchical menu escape) 
    23  
    24 There are 3 basic event-related classes: 
    25 The event_type. 
    26 Concrete event, with at most 32 distinct types. 
    27  
    28 The event_listener observer for key events 
    29  
    30 The event_target   The registrar for event_listeners. 
    31 For convenience, the event target is also an event_listener. 
    32  
    33  
    34 */ 
    35  
    36 #include "angband.h" 
     22 * Implementation of Extremely Basic Event Model. 
     23 * Limits: 
     24 *   all events are of the concrete type event_type (see z-util.h),  
     25 *   which are supposed to model simple UI actions: 
     26 *      - < escape > 
     27 *      - keystroke 
     28 *      - mousepress 
     29 *      - select menu element 
     30 *      - move menu cursor 
     31 *      - back to parent (hierarchical menu escape) 
     32 * 
     33 * There are 3 basic event-related classes: 
     34 * The event_type. 
     35 * Concrete event, with at most 32 distinct types. 
     36 * 
     37 * The event_listener observer for key events 
     38 * 
     39 * The event_target   The registrar for event_listeners. 
     40 * For convenience, the event target is also an event_listener. 
     41 */ 
    3742 
    3843/* Some useful constants */ 
    39  
    4044const char default_choice[] = 
    4145        "1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; 
  • trunk/src/z-file.c

    r136 r148  
    11/* 
    22 * File: z-file.c 
    3  * Purpose: General purpose file handling. 
    4  * 
    5  * 
    6  * 
     3 * Purpose: Low-level file (and directory) handling 
     4 * 
     5 * Copyright (c) 1997-2007 Ben Harrison, pelpel, Andrew Sidwell 
     6 * 
     7 * This work is free software; you can redistribute it and/or modify it 
     8 * under the terms of either: 
     9 * 
     10 * a) the GNU General Public License as published by the Free Software 
     11 *    Foundation, version 2, or 
     12 * 
     13 * b) the "Angband licence": 
     14 *    This software may be copied and distributed for educational, research, 
     15 *    and not for profit purposes provided that this copyright and statement 
     16 *    are included in all such copies.  Other copyrights may also apply. 
     17 */ 
     18#include "angband.h" 
     19#include "z-file.h" 
     20 
     21 
     22/* 
    723 * The concept of the file routines is that all file handling should be done 
    824 * using as few routines as possible, since every machine is slightly 
     
    3046 * not be defined. 
    3147 */ 
    32 #include "angband.h" 
    33 #include "z-file.h" 
    3448 
    3549#ifndef RISCOS 
  • trunk/src/z-form.c

    r110 r148  
    1 /* File: z-form.c */ 
    2  
    3 /* 
     1/* 
     2 * File: z-form.c 
     3 * Purpose: Low-level text formatting (snprintf() replacement) 
     4 * 
    45 * Copyright (c) 1997 Ben Harrison 
    56 * 
    6  * This software may be copied and distributed for educational, research, 
    7  * and not for profit purposes provided that this copyright and statement 
    8  * are included in all such copies. 
    9  */ 
    10  
    11 /* Purpose: Low level text formatting -BEN- */ 
    12  
     7 * This work is free software; you can redistribute it and/or modify it 
     8 * under the terms of either: 
     9 * 
     10 * a) the GNU General Public License as published by the Free Software 
     11 *    Foundation, version 2, or 
     12 * 
     13 * b) the "Angband licence": 
     14 *    This software may be copied and distributed for educational, research, 
     15 *    and not for profit purposes provided that this copyright and statement 
     16 *    are included in all such copies.  Other copyrights may also apply. 
     17 */ 
    1318#include "z-form.h" 
    1419#include "z-type.h" 
  • trunk/src/z-util.c

    r1 r148  
    1 /* File: z-util.c */ 
    2  
    3 /* 
    4  * Copyright (c) 1997 Ben Harrison 
    5  * 
    6  * This software may be copied and distributed for educational, research, 
    7  * and not for profit purposes provided that this copyright and statement 
    8  * are included in all such copies. 
    9  */ 
    10  
    11 /* Purpose: Low level utilities -BEN- */ 
    12  
     1/* 
     2 * File: z-util.c 
     3 * Purpose: Low-level string handling and other utilities. 
     4 * 
     5 * Copyright (c) 1997-2005 Ben Harrison, Robert Ruehlmann. 
     6 * 
     7 * This work is free software; you can redistribute it and/or modify it 
     8 * under the terms of either: 
     9 * 
     10 * a) the GNU General Public License as published by the Free Software 
     11 *    Foundation, version 2, or 
     12 * 
     13 * b) the "Angband licence": 
     14 *    This software may be copied and distributed for educational, research, 
     15 *    and not for profit purposes provided that this copyright and statement 
     16 *    are included in all such copies.  Other copyrights may also apply. 
     17 */ 
    1318#include "z-util.h" 
    1419 
  • trunk/src/z-virt.c

    r1 r148  
    1 /* File: z-virt.c */ 
     1/* 
     2 * File: z-virt.c 
     3 * Purpose: Memory management routines 
     4 * 
     5 * Copyright (c) 1997 Ben Harrison. 
     6 * 
     7 * This work is free software; you can redistribute it and/or modify it 
     8 * under the terms of either: 
     9 * 
     10 * a) the GNU General Public License as published by the Free Software 
     11 *    Foundation, version 2, or 
     12 * 
     13 * b) the "Angband licence": 
     14 *    This software may be copied and distributed for educational, research, 
     15 *    and not for profit purposes provided that this copyright and statement 
     16 *    are included in all such copies.  Other copyrights may also apply. 
     17 */ 
     18#include "z-virt.h" 
     19#include "z-util.h" 
    220 
    3 /* 
    4  * Copyright (c) 1997 Ben Harrison 
    5  * 
    6  * This software may be copied and distributed for educational, research, 
    7  * and not for profit purposes provided that this copyright and statement 
    8  * are included in all such copies. 
    9  */ 
    10  
    11 /* Purpose: Memory management routines -BEN- */ 
    12  
    13 #include "z-virt.h" 
    14  
    15 #include "z-util.h" 
    1621 
    1722