OSDN Git Service

[Refactor] #40399 Moved *item_tester_hook from object.h to object-hook.c
authorHourier <hourier@users.sourceforge.jp>
Thu, 28 May 2020 10:31:29 +0000 (19:31 +0900)
committerHourier <hourier@users.sourceforge.jp>
Thu, 28 May 2020 10:31:29 +0000 (19:31 +0900)
src/object/object-hook.h
src/object/object.h
src/spell/spells-summon.c

index 7d63e1c..6369a4f 100644 (file)
@@ -1,4 +1,7 @@
-
+#pragma once
+
+extern bool (*item_tester_hook)(object_type *o_ptr);
+
 extern bool item_tester_hook_convertible(object_type *o_ptr);
 extern bool item_tester_hook_recharge(object_type *o_ptr);
 extern bool item_tester_hook_orthodox_melee_weapons(object_type *o_ptr);
index 60a1ceb..811daee 100644 (file)
@@ -33,7 +33,6 @@
 
 #include "object/object-util.h"
 
-extern bool(*item_tester_hook)(object_type *o_ptr);
 extern bool(*get_obj_num_hook)(KIND_OBJECT_IDX k_idx);
 
 /* object1.c */
index 4aa8524..b37ec8e 100644 (file)
@@ -7,6 +7,7 @@
 #include "floor/floor.h"
 #include "effect/spells-effect-util.h"
 #include "spell/spells2.h"
+#include "object/object-hook.h"
 
 /*!
 * @brief トランプ魔法独自の召喚処理を行う / Handle summoning and failure of trump spells