OSDN Git Service

[Refactor] #37353 now_message を core.c/h に移動.
authordeskull <deskull@users.sourceforge.jp>
Sat, 18 May 2019 10:29:45 +0000 (19:29 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Sat, 18 May 2019 10:29:45 +0000 (19:29 +0900)
src/core.c
src/core.h
src/externs.h
src/util.c
src/variable.c

index f3c6d66..cf6b50d 100644 (file)
@@ -98,6 +98,8 @@ const concptr copyright[5] =
 
 bool can_save = FALSE;        /* Game can be saved */
 
+COMMAND_CODE now_message;
+
 concptr ANGBAND_SYS = "xxx"; //!< Hack -- The special Angband "System Suffix" This variable is used to choose an appropriate "pref-xxx" file
 
 #ifdef JP
index b7ea011..bc5c51d 100644 (file)
@@ -19,6 +19,7 @@ extern concptr ANGBAND_KEYBOARD;
 extern concptr ANGBAND_GRAF;
 
 extern bool can_save;
+extern COMMAND_CODE now_message;
 
 extern void play_game(bool new_game);
 extern s32b turn_real(s32b hoge);
index 4be1f98..7839bfb 100644 (file)
@@ -89,7 +89,6 @@ extern bool sukekaku;
 extern bool new_mane;
 
 extern DEPTH *max_dlv;
-extern COMMAND_CODE now_message;
 extern bool use_menu;
 
 /* xtra1.c */
index 1b5edd8..3c1c5d6 100644 (file)
@@ -11,6 +11,7 @@
 /* Purpose: Angband utilities -BEN- */
 
 #include "angband.h"
+#include "core.h"
 #include "util.h"
 #include "files.h"
 #include "monsterrace-hook.h"
index ffebd23..1286fb5 100644 (file)
@@ -101,7 +101,6 @@ bool new_mane;
  */
 DEPTH *max_dlv;
 
-COMMAND_CODE now_message;
 bool use_menu;
 
 #ifdef CHUUKEI