From a04ad80a47e61f26fcda36b3c85fcba1c5fa0fb0 Mon Sep 17 00:00:00 2001 From: Deskull Date: Sun, 16 Dec 2018 11:22:40 +0900 Subject: [PATCH] =?utf8?q?[Refactor]=20#37353=20=E9=96=A2=E6=95=B0?= =?utf8?q?=E3=82=B9=E3=82=B3=E3=83=BC=E3=83=97=E6=95=B4=E7=90=86=E3=80=82?= =?utf8?q?=20/=20Adjust=20scope=20of=20functions.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/externs.h | 4 ---- src/xtra1.c | 8 ++++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/externs.h b/src/externs.h index c9f8eb855..1756d8bd9 100644 --- a/src/externs.h +++ b/src/externs.h @@ -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); diff --git a/src/xtra1.c b/src/xtra1.c index 9d7e9ccaf..379520131 100644 --- a/src/xtra1.c +++ b/src/xtra1.c @@ -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; -- 2.11.0