• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision291a91c95bc87b55040cc371f92d2f6c1f4b1ff3 (tree)
Time2019-01-07 13:07:01
AuthorDeskull <deskull@user...>
CommiterDeskull

Log Message

[Refactor] #37353 型の置換。 / Type replacement.

Change Summary

Incremental Difference

--- a/src/cmd4.c
+++ b/src/cmd4.c
@@ -5233,18 +5233,15 @@ static void ang_sort_art_swap(vptr u, vptr v, int a, int b)
52335233 */
52345234 static void do_cmd_knowledge_artifacts(void)
52355235 {
5236- IDX i;
5237- IDX k;
5236+ ARTIFACT_IDX i;
5237+ ARTIFACT_IDX k;
52385238 POSITION x, y;
52395239 int n = 0;
5240- IDX z;
5240+ ARTIFACT_IDX z;
52415241 u16b why = 3;
5242- IDX *who;
5243-
5242+ ARTIFACT_IDX *who;
52445243 FILE *fff;
5245-
52465244 GAME_TEXT file_name[1024];
5247-
52485245 GAME_TEXT base_name[MAX_NLEN];
52495246
52505247 bool *okay;
@@ -5259,7 +5256,7 @@ static void do_cmd_knowledge_artifacts(void)
52595256 }
52605257
52615258 /* Allocate the "who" array */
5262- C_MAKE(who, max_a_idx, s16b);
5259+ C_MAKE(who, max_a_idx, ARTIFACT_IDX);
52635260
52645261 /* Allocate the "okay" array */
52655262 C_MAKE(okay, max_a_idx, bool);
@@ -5378,7 +5375,7 @@ static void do_cmd_knowledge_artifacts(void)
53785375 }
53795376
53805377 /* Free the "who" array */
5381- C_KILL(who, max_a_idx, s16b);
5378+ C_KILL(who, max_a_idx, ARTIFACT_IDX);
53825379
53835380 /* Free the "okay" array */
53845381 C_KILL(okay, max_a_idx, bool);
@@ -5903,13 +5900,11 @@ static void do_cmd_knowledge_pets(void)
59035900 */
59045901 static void do_cmd_knowledge_kill_count(void)
59055902 {
5906- IDX i;
5903+ MONRACE_IDX i;
59075904 int k, n = 0;
59085905 u16b why = 2;
5909- IDX *who;
5910-
5906+ MONRACE_IDX *who;
59115907 FILE *fff;
5912-
59135908 GAME_TEXT file_name[1024];
59145909
59155910 s32b Total = 0;
@@ -5919,13 +5914,13 @@ static void do_cmd_knowledge_kill_count(void)
59195914 fff = my_fopen_temp(file_name, 1024);
59205915
59215916 if (!fff) {
5922- msg_format(_("一時ファイル %s を作成できませんでした。", "Failed to create temporary file %s."), file_name);
5923- msg_print(NULL);
5924- return;
5917+ msg_format(_("一時ファイル %s を作成できませんでした。", "Failed to create temporary file %s."), file_name);
5918+ msg_print(NULL);
5919+ return;
59255920 }
59265921
59275922 /* Allocate the "who" array */
5928- C_MAKE(who, max_r_idx, s16b);
5923+ C_MAKE(who, max_r_idx, MONRACE_IDX);
59295924
59305925 {
59315926 /* Monsters slain */
@@ -7530,7 +7525,7 @@ static void do_cmd_knowledge_features(bool *need_redraw, bool visual_only, IDX d
75307525 }
75317526
75327527 /* Free the "feat_idx" array */
7533- C_KILL(feat_idx, max_f_idx, IDX);
7528+ C_KILL(feat_idx, max_f_idx, FEAT_IDX);
75347529 }
75357530
75367531
Show on old repository browser