待辦事項 #39492

Patch for --disable-japanese compiler errors

啟用日期: 2019-08-20 18:46 最後更新: 2021-01-01 20:07

回報者:
(匿名)
負責人:
類型:
狀態:
關閉
元件:
(無)
優先權:
1 - 最低
嚴重程度:
1 - 最低
處理結果:
Duplicate
檔案:

細節

On OS X 10.14.6 with Apple's cc, version 10.0.1, there were some compiler errors when the source was configured with --disable-japanese. Below is the output from git diff for the changes to src/autopick.c, src/cmd-smith.c, and src/monster1.c that resolved those compiler errors.

diff --git a/src/autopick.c b/src/autopick.c
index 3ad5cea1..c74136ac 100644
--- a/src/autopick.c
+++ b/src/autopick.c
@@ -137,7 +137,7 @@ static GAME_TEXT KEY_COLLECTING[] = "collecting";
 static GAME_TEXT KEY_ARTIFACT[] = "artifact";
 static GAME_TEXT KEY_EGO[] = "ego";
 static GAME_TEXT KEY_GOOD[] = "good";
-static GAME_TEXT KEY_nameLESS[] = "nameless";
+static GAME_TEXT KEY_NAMELESS[] = "nameless";
 static GAME_TEXT KEY_AVERAGE[] = "average";
 static GAME_TEXT KEY_WORTHLESS[] = "worthless";
 static GAME_TEXT KEY_RARE[] = "rare";
diff --git a/src/cmd-smith.c b/src/cmd-smith.c
index 873a9b11..44ebef8f 100644
--- a/src/cmd-smith.c
+++ b/src/cmd-smith.c
@@ -1310,7 +1310,7 @@ static void add_essence(ESSENCE_IDX mode)
 #ifdef JP
        msg_format(_("%sに%sの能力を付加しました。", "You have added ability of %s to %s."), o_name, es_ptr->add_name);
 #else
-       msg_format(, es_ptr->add_name, o_name);
+       msg_format(_("%sに%sの能力を付加しました。", "You have added ability of %s to %s."), es_ptr->add_name, o_name);
 #endif
        p_ptr->update |= (PU_COMBINE | PU_REORDER);
        p_ptr->window |= (PW_INVEN);
diff --git a/src/monster1.c b/src/monster1.c
index 582b3542..f657e427 100644
--- a/src/monster1.c
+++ b/src/monster1.c
@@ -669,7 +669,7 @@ static void roff_aux(MONRACE_IDX r_idx, BIT_FLAGS mode)
                        /* Mention the experience */
                        hooked_roff(format(" is worth about %ld.%02ld point%s for level %d player",
                                (long)i, (long)j,
-                               (((i == 1) && (j == 0)) ? "" : "s")), p_ptr->lev);
+                               (((i == 1) && (j == 0)) ? "" : "s"), p_ptr->lev));
 
                        /* Take account of annoying English */
                        p = "th";

Ticket History (3/4 Histories)

2019-08-20 18:46 Updated by: None
  • New Ticket "Patch for --disable-japanese compiler errors" created
2019-08-31 20:00 Updated by: deskull
評語

It was applied manually. thanks.

2019-09-01 00:00 Updated by: deskull
  • 處理結果 Update from to Duplicate
  • 負責人 Update from (無) to deskull
  • 狀態 Update from 開啟 to 關閉
2021-01-01 20:07 Updated by: deskull

Attachment File List

No attachments

編輯

Please login to add comment to this ticket » 登入