OSDN Git Service

[Refactor] #37353 店処理のヘッダを externs.h から store.h へ分離。
authorDeskull <deskull@users.sourceforge.jp>
Sat, 8 Dec 2018 09:53:51 +0000 (18:53 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Sat, 8 Dec 2018 09:53:51 +0000 (18:53 +0900)
Separate externs.h to store.h.

Hengband_vcs2015/Hengband/Hengband.vcxproj
src/Makefile.am
src/autopick.c
src/birth.c
src/dungeon.c
src/externs.h
src/rooms-city.c
src/rooms-vault.c
src/store.c
src/store.h [new file with mode: 0644]

index ce8409b..09b2ded 100644 (file)
     <ClInclude Include="..\..\src\selfinfo.h" />\r
     <ClInclude Include="..\..\src\spells-summon.h" />\r
     <ClInclude Include="..\..\src\floor-streams.h" />\r
+    <ClInclude Include="..\..\src\store.h" />\r
     <ClInclude Include="..\..\src\trap.h" />\r
     <ClInclude Include="..\..\src\types.h" />\r
     <ClInclude Include="..\..\src\z-config.h" />\r
index f14fc30..c1cdb2d 100644 (file)
@@ -36,7 +36,7 @@ hengband_SOURCES = \
        rooms-special.c rooms-special.h rooms-trap.c rooms-trap.h rooms-vault.c \
        rooms-vault.h save.c scores.c selfinfo.c selfinfo.h shoot.c snipe.c \
        spells1.c spells2.c spells3.c spells-summon.c spells-summon.h \
-       store.c tables.c trap.c trap.h types.h util.c \
+       store.h store.c tables.c trap.c trap.h types.h util.c \
        variable.c wild.c wizard1.c wizard2.c xtra1.c xtra2.c z-config.h \
        z-form.c z-form.h z-rand.c z-rand.h z-term.c z-term.h z-util.c z-util.h \
        z-virt.c z-virt.h 
index 8d60e03..0b2360a 100644 (file)
@@ -12,7 +12,7 @@
  */
 
 #include "angband.h"
-
+#include "store.h"
 
 #define MAX_LINELEN 1024
 
index 8a92971..74db397 100644 (file)
@@ -14,6 +14,7 @@
 #include "angband.h"
 #include "history.h"
 #include "monster-hook.h"
+#include "store.h"
 
 /*!
  * オートローラーの内容を描画する間隔 / 
index 237282a..eaf6135 100644 (file)
@@ -23,6 +23,7 @@
 #include "cmd-pet.h"
 #include "floor-events.h"
 #include "object-curse.h"
+#include "store.h"
 
 static bool load = TRUE; /*!<ロード処理中の分岐フラグ*/
 static int wild_regen = 20; /*!<広域マップ移動時の自然回復処理カウンタ(広域マップ1マス毎に20回処理を基本とする)*/
index e442763..f6f7afd 100644 (file)
@@ -1068,14 +1068,6 @@ extern void massacre(void);
 extern bool eat_lock(void);
 extern bool shock_power(void);
 
-/* store.c */
-extern bool combine_and_reorder_home(int store_num);
-extern void do_cmd_store(void);
-extern void store_shuffle(int which);
-extern void store_maint(int town_num, int store_num);
-extern void store_init(int town_num, int store_num);
-extern void move_to_black_market(object_type * o_ptr);
-
 /* bldg.c */
 extern bool get_nightmare(MONRACE_IDX r_idx);
 extern void battle_monsters(void);
index 9f9dc1e..df6ff39 100644 (file)
@@ -3,6 +3,7 @@
 #include "generate.h"\r
 #include "rooms.h"\r
 #include "rooms-city.h"\r
+#include "store.h"\r
 \r
 \r
 \r
index 3746791..e314482 100644 (file)
@@ -1,7 +1,8 @@
 #include "angband.h"\r
+#include "generate.h"\r
 #include "grid.h"\r
 #include "rooms.h"\r
-#include "generate.h"\r
+#include "store.h"\r
 #include "trap.h"\r
 \r
 /*\r
index bfc4261..13d17aa 100644 (file)
@@ -14,6 +14,7 @@
 #include "cmd-item.h"
 #include "cmd-zapwand.h"
 #include "cmd-magiceat.h"
+#include "store.h"
 
 #define MIN_STOCK 12
 
diff --git a/src/store.h b/src/store.h
new file mode 100644 (file)
index 0000000..709f291
--- /dev/null
@@ -0,0 +1,8 @@
+\r
+/* store.c */\r
+extern bool combine_and_reorder_home(int store_num);\r
+extern void do_cmd_store(void);\r
+extern void store_shuffle(int which);\r
+extern void store_maint(int town_num, int store_num);\r
+extern void store_init(int town_num, int store_num);\r
+extern void move_to_black_market(object_type * o_ptr);\r