OSDN Git Service

[Refactor] #40413 Adjusted inclusion for alloc-entry-definition.h
authorHourier <hourier@users.sourceforge.jp>
Sun, 14 Jun 2020 13:13:39 +0000 (22:13 +0900)
committerHourier <hourier@users.sourceforge.jp>
Sun, 14 Jun 2020 13:13:39 +0000 (22:13 +0900)
src/monster-race/monster-race.c
src/monster/monster-processor.c
src/object-enchant/object-curse.c
src/object-enchant/object-curse.h
src/object/object-kind.c
src/object/object-kind.h
src/player/patron.c
src/room/rooms-trap.c
src/system/alloc-entry-definition.h

index 9e98cf4..735ceaa 100644 (file)
@@ -1,6 +1,5 @@
 #include "system/angband.h"
 #include "monster-race/monster-race.h"
-#include "system/alloc-entry-definition.h"
 
 monster_race *r_info;
 char *r_name;
index 0f96e1e..a88c07e 100644 (file)
@@ -51,7 +51,6 @@
 #include "player/player-move.h"
 #include "spell-realm/spells-hex.h"
 #include "spell/spells-summon.h"
-#include "system/alloc-entry-definition.h"
 #include "view/display-messages.h"
 
 void decide_drop_from_monster(player_type *target_ptr, MONSTER_IDX m_idx, bool is_riding_mon);
index 44bf587..70df42d 100644 (file)
@@ -1,12 +1,10 @@
-#include "system/angband.h"
-#include "system/alloc-entry-definition.h"
+#include "object-enchant/object-curse.h"
 #include "object-enchant/item-feeling.h"
-#include "object-enchant/object-curse.h"
+#include "object-enchant/tr-types.h"
+#include "object-enchant/trc-types.h"
 #include "object/object-flags.h"
 #include "object/object-flavor.h"
 #include "object/object-hook.h"
-#include "object-enchant/tr-types.h"
-#include "object-enchant/trc-types.h"
 #include "util/bit-flags-calculator.h"
 #include "view/display-messages.h"
 
index 7fcd47b..d050b32 100644 (file)
@@ -1,2 +1,6 @@
-extern BIT_FLAGS get_curse(int power, object_type *o_ptr);
-extern void curse_equipment(player_type *owner_ptr, PERCENTAGE chance, PERCENTAGE heavy_chance);
+#pragma once
+
+#include "system/angband.h"
+
+BIT_FLAGS get_curse(int power, object_type *o_ptr);
+void curse_equipment(player_type *owner_ptr, PERCENTAGE chance, PERCENTAGE heavy_chance);
index a92c475..01de9d4 100644 (file)
@@ -1,5 +1,4 @@
 #include "object-kind.h"
-#include "system/alloc-entry-definition.h"
 
 /*
  * The object kind arrays
index 5ec195b..9a12a48 100644 (file)
@@ -1,6 +1,7 @@
 #pragma once
 
 #include "system/angband.h"
+#include "system/alloc-entry-definition.h"
 
 /*!
  * @struct object_kind
index d3e34b4..a2b78bf 100644 (file)
@@ -24,7 +24,6 @@
 #include "spell/spells-status.h"
 #include "spell/spells-summon.h"
 #include "spell/spell-types.h"
-#include "system/alloc-entry-definition.h"
 #include "view/display-messages.h"
 
 #ifdef JP
index b532246..ae7dd42 100644 (file)
@@ -5,7 +5,6 @@
 #include "grid/feature.h"
 #include "grid/grid.h"
 #include "room/rooms.h"
-#include "system/alloc-entry-definition.h"
 #include "view/display-messages.h"
 
 /*!
index 8b9d1d0..5fc7082 100644 (file)
  * Pass 2 is determined from allocation restriction
  * Pass 3 is determined from allocation calculation
  */
-
-typedef struct alloc_entry alloc_entry;
-
-struct alloc_entry {
+typedef struct alloc_entry {
     KIND_OBJECT_IDX index; /* The actual index */
 
     DEPTH level; /* Base dungeon level */
@@ -31,4 +28,4 @@ struct alloc_entry {
     PROB prob3; /* Probability, pass 3 */
 
     u16b total; /* Unused for now */
-};
+} alloc_entry;