• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Revision5b8128b484dd7586b16cd0c9f17dcd4e36b60489 (tree)
Time2019-06-08 21:05:34
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 defines.h 削除.

Change Summary

Incremental Difference

--- a/Hengband_vcs2017/Hengband/Hengband.vcxproj
+++ b/Hengband_vcs2017/Hengband/Hengband.vcxproj
@@ -303,7 +303,6 @@
303303 <ClInclude Include="..\..\src\cmd-usestaff.h" />
304304 <ClInclude Include="..\..\src\core.h" />
305305 <ClInclude Include="..\..\src\creature.h" />
306- <ClInclude Include="..\..\src\defines.h" />
307306 <ClInclude Include="..\..\src\dungeon-file.h" />
308307 <ClInclude Include="..\..\src\dungeon.h" />
309308 <ClInclude Include="..\..\src\externs.h" />
--- a/Hengband_vcs2017/Hengband/Hengband.vcxproj.filters
+++ b/Hengband_vcs2017/Hengband/Hengband.vcxproj.filters
@@ -401,7 +401,6 @@
401401 </ClCompile>
402402 </ItemGroup>
403403 <ItemGroup>
404- <ClInclude Include="..\..\src\defines.h" />
405404 <ClInclude Include="..\..\src\externs.h" />
406405 <ClInclude Include="..\..\src\gamevalue.h" />
407406 <ClInclude Include="..\..\src\h-basic.h" />
--- a/src/angband.h
+++ b/src/angband.h
@@ -42,7 +42,6 @@
4242 /*
4343 * Now, include the define's, the type's, and the extern's
4444 */
45-#include "defines.h"
4645 #include "gamevalue.h"
4746 #include "externs.h"
4847 #include "gameoption.h"
--- a/src/defines.h
+++ /dev/null
@@ -1,41 +0,0 @@
1-#pragma once
2-
3-/*!
4- * @file defines.h
5- * @brief 主要なマクロ定義ヘッダ / Purpose: global constants and macro definitions
6- * @date 2014/01/02
7- * @author
8- * Copyright (c) 1997 Ben Harrison, James E. Wilson, Robert A. Koeneke\n
9- *\n
10- * This software may be copied and distributed for educational, research,\n
11- * and not for profit purposes provided that this copyright and statement\n
12- * are included in all such copies. Other copyrights may also apply.\n
13- * @details
14- * Do not edit this file unless you know *exactly* what you are doing.\n
15- *\n
16- * Some of the values in this file were chosen to preserve game balance,\n
17- * while others are hard-coded based on the format of old save-files, the\n
18- * definition of arrays in various places, mathematical properties, fast\n
19- * computation, storage limits, or the format of external text files.\n
20- *\n
21- * Changing some of these values will induce crashes or memory errors or\n
22- * savefile mis-reads. Most of the comments in this file are meant as\n
23- * reminders, not complete descriptions, and even a complete knowledge\n
24- * of the source may not be sufficient to fully understand the effects\n
25- * of changing certain definitions.\n
26- *\n
27- * Lastly, note that the code does not always use the symbolic constants\n
28- * below, and sometimes uses various hard-coded values that may not even\n
29- * be defined in this file, but which may be related to definitions here.\n
30- * This is of course bad programming practice, but nobody is perfect...\n
31- *\n
32- * For example, there are MANY things that depend on the screen being\n
33- * 80x24, with the top line used for messages, the bottom line being\n
34- * used for status, and exactly 22 lines used to show the dungeon.\n
35- * Just because your screen can hold 46 lines does not mean that the\n
36- * game will work if you try to use 44 lines to show the dungeon.\n
37- *\n
38- * You have been warned.\n
39- */
40-
41-/*** Screen Locations ***/
--- a/src/object-flavor.c
+++ b/src/object-flavor.c
@@ -30,8 +30,7 @@
3030 #include "japanese.h"
3131
3232 /*!
33- * @brief アイテムの価値記述テーブル /
34- * Table of game-generated inscriptions (indexed by the defines in defines.h). -- RG
33+ * @brief アイテムの価値記述テーブル
3534 */
3635 const concptr game_inscriptions[] =
3736 {
--- a/src/object.h
+++ b/src/object.h
@@ -1,5 +1,4 @@
11 #pragma once
2-#include "defines.h"
32
43 /*
54 * Object information, for a specific object.
--- a/src/player-status.c
+++ b/src/player-status.c
@@ -3187,7 +3187,6 @@ static void calc_torch(void)
31873187 }
31883188
31893189 /* max radius is 14 (was 5) without rewriting other code -- */
3190- /* see grid.c:update_lite() and defines.h:LITE_MAX */
31913190 if (d_info[p_ptr->dungeon_idx].flags1 & DF1_DARKNESS && p_ptr->cur_lite > 1)
31923191 p_ptr->cur_lite = 1;
31933192
--- a/src/spells1.c
+++ b/src/spells1.c
@@ -5417,7 +5417,7 @@ void breath_shape(u16b *path_g, int dist, int *pgrids, POSITION *gx, POSITION *g
54175417 * @param x 目標X座標 / Target x location (or location to travel "towards")
54185418 * @param dam 基本威力 / Base damage roll to apply to affected monsters (or player)
54195419 * @param typ 効果属性 / Type of damage to apply to monsters (and objects)
5420- * @param flg 効果フラグ / Extra bit flags (see PROJECT_xxxx in "defines.h")
5420+ * @param flg 効果フラグ / Extra bit flags (see PROJECT_xxxx)
54215421 * @param monspell 効果元のモンスター魔法ID
54225422 * @return 何か一つでも効力があればTRUEを返す / TRUE if any "effects" of the projection were observed, else FALSE
54235423 * @details
Show on old repository browser