Changeset 505

Show
Ignore:
Timestamp:
08/12/07 05:41:12 (1 year ago)
Author:
takkaria
Message:

Finally remove script.h, and move the x-spell defines to externs.h.
Remove some space at the end of the line from x-spell.c
Add the new-style file header to store.c.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/Makefile.inc

    r504 r505  
    1919birth.o: birth.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    2020  z-rand.h z-term.h z-quark.h z-msg.h config.h defines.h option.h types.h \ 
    21   ui.h z-type.h externs.h cmds.h script.h 
     21  ui.h z-type.h externs.h cmds.h 
    2222cave.o: cave.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    2323  z-rand.h z-term.h z-quark.h z-msg.h config.h defines.h option.h types.h \ 
     
    4040cmd5.o: cmd5.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    4141  z-rand.h z-term.h z-quark.h z-msg.h config.h defines.h option.h types.h \ 
    42   ui.h z-type.h externs.h script.h 
     42  ui.h z-type.h externs.h 
    4343cmd6.o: cmd6.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    4444  z-rand.h z-term.h z-quark.h z-msg.h config.h defines.h option.h types.h \ 
     
    4646dungeon.o: dungeon.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    4747  z-virt.h z-rand.h z-term.h z-quark.h z-msg.h config.h defines.h \ 
    48   option.h types.h ui.h z-type.h externs.h cmds.h script.h 
     48  option.h types.h ui.h z-type.h externs.h cmds.h 
    4949effects.o: effects.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    5050  z-virt.h z-rand.h z-term.h z-quark.h z-msg.h config.h defines.h \ 
     
    6161init2.o: init2.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    6262  z-rand.h z-term.h z-quark.h z-msg.h config.h defines.h option.h types.h \ 
    63   ui.h z-type.h externs.h init.h script.h cmds.h 
     63  ui.h z-type.h externs.h init.h cmds.h 
    6464load.o: load.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    6565  z-rand.h z-term.h z-quark.h z-msg.h config.h defines.h option.h types.h \ 
     
    6868  z-virt.h z-rand.h z-term.h z-quark.h z-msg.h config.h defines.h \ 
    6969  option.h types.h ui.h z-type.h externs.h z-blockfile.h z-smap.h 
    70 log.o: log.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    71   z-rand.h z-term.h z-quark.h z-msg.h config.h defines.h option.h types.h \ 
    72   ui.h z-type.h externs.h log.h 
    73 maid-x11.o: maid-x11.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    74   z-virt.h z-rand.h z-term.h z-quark.h z-msg.h config.h defines.h \ 
    75   option.h types.h ui.h z-type.h externs.h 
    76 main.o: main.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    77   z-rand.h z-term.h z-quark.h z-msg.h config.h defines.h option.h types.h \ 
    78   ui.h z-type.h externs.h main.h 
    79 main-crb.o: main-crb.c 
    80 main-gcu.o: main-gcu.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    81   z-virt.h z-rand.h z-term.h z-quark.h z-msg.h config.h defines.h \ 
    82   option.h types.h ui.h z-type.h externs.h 
    83 main-gtk.o: main-gtk.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    84   z-virt.h z-rand.h z-term.h z-quark.h z-msg.h config.h defines.h \ 
    85   option.h types.h ui.h z-type.h externs.h 
    86 main-ros.o: main-ros.c 
    87 main-sdl.o: main-sdl.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    88   z-virt.h z-rand.h z-term.h z-quark.h z-msg.h config.h defines.h \ 
    89   option.h types.h ui.h z-type.h externs.h cmds.h 
    90 main-win.o: main-win.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    91   z-virt.h z-rand.h z-term.h z-quark.h z-msg.h config.h defines.h \ 
    92   option.h types.h ui.h z-type.h externs.h 
    93 main-x11.o: main-x11.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    94   z-virt.h z-rand.h z-term.h z-quark.h z-msg.h config.h defines.h \ 
    95   option.h types.h ui.h z-type.h externs.h 
    96 main-xaw.o: main-xaw.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    97   z-virt.h z-rand.h z-term.h z-quark.h z-msg.h config.h defines.h \ 
    98   option.h types.h ui.h z-type.h externs.h 
    99 main-xxx.o: main-xxx.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    100   z-virt.h z-rand.h z-term.h z-quark.h z-msg.h config.h defines.h \ 
    101   option.h types.h ui.h z-type.h externs.h 
    10270melee1.o: melee1.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    10371  z-virt.h z-rand.h z-term.h z-quark.h z-msg.h config.h defines.h \ 
     
    12492  z-virt.h z-rand.h z-term.h z-quark.h z-msg.h config.h defines.h \ 
    12593  option.h types.h ui.h z-type.h externs.h 
    126 pathfind.o: pathfind.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    127   z-virt.h z-rand.h z-term.h z-quark.h z-msg.h config.h defines.h \ 
    128   option.h types.h ui.h z-type.h externs.h 
    12994randart.o: randart.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    13095  z-virt.h z-rand.h z-term.h z-quark.h z-msg.h config.h defines.h \ 
     
    13398  z-virt.h z-rand.h z-term.h z-quark.h z-msg.h config.h defines.h \ 
    13499  option.h types.h ui.h z-type.h externs.h randname.h 
    135 save.o: save.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    136   z-rand.h z-term.h z-quark.h z-msg.h config.h defines.h option.h types.h \ 
    137   ui.h z-type.h externs.h 
     100pathfind.o: pathfind.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
     101  z-virt.h z-rand.h z-term.h z-quark.h z-msg.h config.h defines.h \ 
     102  option.h types.h ui.h z-type.h externs.h 
    138103score.o: score.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    139104  z-rand.h z-term.h z-quark.h z-msg.h config.h defines.h option.h types.h \ 
     
    142107  z-virt.h z-rand.h z-term.h z-quark.h z-msg.h config.h defines.h \ 
    143108  option.h types.h ui.h z-type.h externs.h 
    144 snd-sdl.o: snd-sdl.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
     109save.o: save.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
     110  z-rand.h z-term.h z-quark.h z-msg.h config.h defines.h option.h types.h \ 
     111  ui.h z-type.h externs.h 
     112spells1.o: spells1.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    145113  z-virt.h z-rand.h z-term.h z-quark.h z-msg.h config.h defines.h \ 
    146114  option.h types.h ui.h z-type.h externs.h 
    147 spells1.o: spells1.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    148   z-virt.h z-rand.h z-term.h z-quark.h z-msg.h config.h defines.h \ 
    149   option.h types.h ui.h z-type.h externs.h script.h 
    150115spells2.o: spells2.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    151116  z-virt.h z-rand.h z-term.h z-quark.h z-msg.h config.h defines.h \ 
     
    156121store.o: store.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    157122  z-rand.h z-term.h z-quark.h z-msg.h config.h defines.h option.h types.h \ 
    158   ui.h z-type.h externs.h script.h cmds.h 
     123  ui.h z-type.h externs.h cmds.h 
    159124tables.o: tables.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    160125  z-virt.h z-rand.h z-term.h z-quark.h z-msg.h config.h defines.h \ 
     
    177142wizard2.o: wizard2.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    178143  z-virt.h z-rand.h z-term.h z-quark.h z-msg.h config.h defines.h \ 
    179   option.h types.h ui.h z-type.h externs.h cmds.h script.h 
     144  option.h types.h ui.h z-type.h externs.h cmds.h 
    180145x-spell.o: x-spell.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    181146  z-virt.h z-rand.h z-term.h z-quark.h z-msg.h config.h defines.h \ 
    182   option.h types.h ui.h z-type.h externs.h script.h 
     147  option.h types.h ui.h z-type.h externs.h 
    183148xtra1.o: xtra1.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    184149  z-rand.h z-term.h z-quark.h z-msg.h config.h defines.h option.h types.h \ 
    185   ui.h z-type.h externs.h script.h 
     150  ui.h z-type.h externs.h 
    186151xtra2.o: xtra2.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    187152  z-rand.h z-term.h z-quark.h z-msg.h config.h defines.h option.h types.h \ 
    188153  ui.h z-type.h externs.h cmds.h 
    189 z-blockfile.o: z-blockfile.c z-virt.h h-basic.h z-blockfile.h z-file.h 
    190154z-file.o: z-file.c z-file.h h-basic.h z-virt.h z-util.h z-form.h 
    191155z-form.o: z-form.c z-form.h h-basic.h z-type.h z-util.h z-virt.h 
     
    193157z-quark.o: z-quark.c z-virt.h h-basic.h z-quark.h 
    194158z-rand.o: z-rand.c z-rand.h h-basic.h 
    195 z-smap.o: z-smap.c z-virt.h h-basic.h z-file.h z-smap.h 
    196159z-term.o: z-term.c z-term.h h-basic.h z-virt.h 
    197160z-type.o: z-type.c h-basic.h z-form.h z-term.h ui.h z-type.h 
    198161z-util.o: z-util.c z-util.h h-basic.h 
    199162z-virt.o: z-virt.c z-virt.h h-basic.h z-util.h 
     163z-blockfile.o: z-blockfile.c z-virt.h h-basic.h z-blockfile.h z-file.h 
     164z-smap.o: z-smap.c z-virt.h h-basic.h z-file.h z-smap.h 
  • trunk/src/birth.c

    r500 r505  
    1111#include "angband.h" 
    1212#include "cmds.h" 
    13 #include "script.h" 
    1413 
    1514 
  • trunk/src/cmd5.c

    r332 r505  
    1010 
    1111#include "angband.h" 
    12  
    13 #include "script.h" 
    1412 
    1513 
  • trunk/src/dungeon.c

    r500 r505  
    1212#include "z-file.h" 
    1313#include "cmds.h" 
    14 #include "script.h" 
    1514 
    1615 
  • trunk/src/externs.h

    r500 r505  
    685685extern void repeat_check(void); 
    686686 
     687/* x-spell.c */ 
     688extern int get_spell_index(const object_type *o_ptr, int index); 
     689extern cptr get_spell_name(int tval, int index); 
     690extern void get_spell_info(int tval, int index, char *buf, size_t len); 
     691extern bool cast_spell(int tval, int index); 
     692 
    687693/* xtra1.c */ 
    688694extern void cnv_stat(int val, char *out_val, size_t len); 
  • trunk/src/init2.c

    r494 r505  
    1313 
    1414#include "init.h" 
    15 #include "script.h" 
    1615#include "cmds.h" 
    1716#include "option.h" 
  • trunk/src/spells1.c

    r449 r505  
    1111#include "angband.h" 
    1212 
    13 #include "script.h" 
    1413 
    1514 
  • trunk/src/store.c

    r489 r505  
    1 /* File: store.c */ 
    2  
    3 /* 
    4  * Copyright (c) 1997-2005 Andrew Sidwell, Ben Harrison, James E. Wilson, 
    5  *                         Robert A. Koeneke 
    6  * 
    7  * This software may be copied and distributed for educational, research, 
    8  * and not for profit purposes provided that this copyright and statement 
    9  * are included in all such copies.  Other copyrights may also apply. 
    10  */ 
    11  
     1/* 
     2 * File: store.c 
     3 * Purpose: Store stocking and UI 
     4 * 
     5 * Copyright (c) 1997 Robert A. Koeneke, James E. Wilson, Ben Harrison 
     6 * Copyright (c) 2007 Andrew Sidwell, who rewrote a fair portion 
     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. 
     18 */ 
    1219#include "angband.h" 
    13 #include "script.h" 
    1420#include "cmds.h" 
     21 
    1522 
    1623/*** Constants and definitions ***/ 
  • trunk/src/wizard2.c

    r500 r505  
    88 * are included in all such copies.  Other copyrights may also apply. 
    99 */ 
    10  
    1110#include "angband.h" 
    1211#include "cmds.h" 
    13 #include "script.h" 
    1412 
    1513 
  • trunk/src/x-spell.c

    r367 r505  
    1111 
    1212#include "angband.h" 
    13 #include "script.h" 
    1413 
    1514 
  • trunk/src/xtra1.c

    r479 r505  
    1010 
    1111#include "angband.h" 
    12 #include "script.h" 
    1312 
    1413 
  • trunk/src/z-smap.h

    r503 r505  
    44#include "h-basic.h" 
    55 
    6 typedef struct _sentry_t { 
     6typedef struct _sentry_t 
     7
    78        byte type; 
    89        u32b keylen; 
    910        u32b datalen; 
    1011        char *key; 
    11         union { 
     12        union 
     13        { 
    1214                bool boolval; 
    1315                char charval; 
     
    2426} sentry_t; 
    2527 
    26 typedef struct _smap_t { 
     28typedef struct _smap_t 
     29
    2730        sentry_t *entries; 
    2831} smap_t;