OSDN Git Service

[Refactor] #37353 関数スコープ整理。 / Adjust scope of functions.
authorDeskull <deskull@users.sourceforge.jp>
Sun, 16 Dec 2018 02:22:40 +0000 (11:22 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Sun, 16 Dec 2018 02:22:40 +0000 (11:22 +0900)
src/externs.h
src/xtra1.c

index c9f8eb8..1756d8b 100644 (file)
@@ -1175,10 +1175,6 @@ extern bool is_heavy_shoot(object_type *o_ptr);
 extern int bow_tval_ammo(object_type *o_ptr);
 extern s16b calc_num_fire(object_type *o_ptr);
 extern void calc_bonuses(void);
-extern void notice_stuff(void);
-extern void update_stuff(void);
-extern void redraw_stuff(void);
-extern void window_stuff(void);
 extern void handle_stuff(void);
 extern BIT_FLAGS16 empty_hands(bool riding_control);
 extern bool heavy_armor(void);
index 9d7e9cc..3795201 100644 (file)
@@ -5748,7 +5748,7 @@ void calc_bonuses(void)
  * @return なし
  * @details 更新処理の対象はアイテムの自動破壊/アイテムの結合/アイテムの並び替え。
  */
-void notice_stuff(void)
+static void notice_stuff(void)
 {
        if(!p_ptr->notice) return;
 
@@ -5780,7 +5780,7 @@ void notice_stuff(void)
  * @return なし
  * @details 更新処理の対象はプレイヤーの能力修正/光源寿命/HP/MP/魔法の学習状態、他多数の外界の状態判定。
  */
-void update_stuff(void)
+static void update_stuff(void)
 {
        if (!p_ptr->update) return;
 
@@ -5890,7 +5890,7 @@ void update_stuff(void)
  * @return なし
  * @details 更新処理の対象はゲーム中の全描画処理
  */
-void redraw_stuff(void)
+static void redraw_stuff(void)
 {
        if (!p_ptr->redraw) return;
 
@@ -6075,7 +6075,7 @@ void redraw_stuff(void)
  * @return なし
  * @details 更新処理の対象はサブウィンドウ全般
  */
-void window_stuff(void)
+static void window_stuff(void)
 {
        int j;
        BIT_FLAGS mask = 0L;