OSDN Git Service

[Refactor] #37353 init_flags, INIT_* フラグを core.h へ移動.
authordeskull <deskull@users.sourceforge.jp>
Mon, 13 May 2019 11:54:18 +0000 (20:54 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Mon, 13 May 2019 11:54:18 +0000 (20:54 +0900)
12 files changed:
src/birth.c
src/cmd-basic.c
src/cmd-dump.c
src/core.c
src/core.h
src/defines.h
src/externs.h
src/floor-generate.c
src/load.c
src/targeting.c
src/variable.c
src/wild.c

index 937a4ff..32b6248 100644 (file)
@@ -14,6 +14,7 @@
 #include "angband.h"
 #include "util.h"
 #include "bldg.h"
+#include "core.h"
 
 #include "artifact.h"
 #include "avatar.h"
index 18713fe..5a67543 100644 (file)
@@ -12,6 +12,7 @@
 
 #include "angband.h"
 #include "util.h"
+#include "core.h"
 
 #include "cmd-dump.h"
 #include "chest.h"
index 5f32597..911b787 100644 (file)
@@ -44,6 +44,7 @@
 #include "cmd-dump.h"
 #include "term.h"
 #include "inet.h"
+#include "core.h"
 
 #include "autopick.h"
 
index 41ba0a2..02937d1 100644 (file)
@@ -109,6 +109,11 @@ concptr ANGBAND_GRAF = "ascii"; //!< Hack -- The special Angband "Graphics Suffi
 static bool load = TRUE; /*!<ロード処理中の分岐フラグ*/
 static int wild_regen = 20; /*!<広域マップ移動時の自然回復処理カウンタ(広域マップ1マス毎に20回処理を基本とする)*/
 
+/*
+ * Flags for initialization
+ */
+int init_flags;
+
 /*!
  * @brief 擬似鑑定を実際に行い判定を反映する
  * @param slot 擬似鑑定を行うプレイヤーの所持リストID
index a444bf8..0cc1e85 100644 (file)
@@ -2,6 +2,18 @@
 
 extern const concptr copyright[5];
 
+
+/*
+ * Initialization flags
+ */
+#define INIT_NAME_ONLY          0x01
+#define INIT_SHOW_TEXT          0x02
+#define INIT_ASSIGN             0x04
+#define INIT_CREATE_DUNGEON     0x08
+#define INIT_ONLY_FEATURES      0x10
+#define INIT_ONLY_BUILDINGS     0x20
+extern int init_flags;
+
 extern concptr ANGBAND_SYS;
 extern concptr ANGBAND_KEYBOARD;
 extern concptr ANGBAND_GRAF;
index 5cb3c7b..bcd4f66 100644 (file)
@@ -2591,15 +2591,6 @@ extern int PlayerUID;
 
 
 
-/*
- * Initialization flags
- */
-#define INIT_NAME_ONLY          0x01
-#define INIT_SHOW_TEXT          0x02
-#define INIT_ASSIGN             0x04
-#define INIT_CREATE_DUNGEON     0x08
-#define INIT_ONLY_FEATURES      0x10
-#define INIT_ONLY_BUILDINGS     0x20
 
 
 /*
index 015c278..c3e4f12 100644 (file)
@@ -112,7 +112,6 @@ extern monsterrace_hook_type get_mon_num_hook;
 extern monsterrace_hook_type get_mon_num2_hook;
 extern bool (*get_obj_num_hook)(KIND_OBJECT_IDX k_idx);
 
-extern int init_flags;
 extern int highscore_fd;
 extern bool can_save;
 
index acf2c26..05a960f 100644 (file)
@@ -98,6 +98,7 @@
 
 #include "angband.h"
 #include "util.h"
+#include "core.h"
 #include "bldg.h"
 
 #include "cmd-dump.h"
index 9e1eed3..6983d91 100644 (file)
@@ -42,8 +42,9 @@
 
 #include "angband.h"
 #include "util.h"
-#include "load.h"
+#include "core.h"
 
+#include "load.h"
 #include "bldg.h"
 #include "report.h"
 
index 0e8fdb9..049aa00 100644 (file)
@@ -13,6 +13,7 @@
 
 #include "angband.h"
 #include "util.h"
+#include "core.h"
 #include "targeting.h"
 
 #include "bldg.h"
index 7ea8b71..e6b1bb9 100644 (file)
@@ -191,11 +191,6 @@ monsterrace_hook_type get_mon_num2_hook;
  */
 bool (*get_obj_num_hook)(KIND_OBJECT_IDX k_idx);
 
-/*
- * Flags for initialization
- */
-int init_flags;
-
 
 /*
  * The "highscore" file descriptor, if available.
index b495052..9178fbc 100644 (file)
@@ -12,6 +12,7 @@
 
 #include "angband.h"
 #include "util.h"
+#include "core.h"
 
 #include "dungeon.h"
 #include "floor.h"