OSDN Git Service

[Fix] #40460 コメントの'header' まで勢い余ってangband_header に変っていたのを修正 / Changed angband_header...
authorHourier <hourier@users.sourceforge.jp>
Sat, 6 Jun 2020 05:48:24 +0000 (14:48 +0900)
committerHourier <hourier@users.sourceforge.jp>
Sat, 6 Jun 2020 05:48:24 +0000 (14:48 +0900)
19 files changed:
src/autopick/autopick-registry.c
src/cmd-io/cmd-dump.c
src/cmd-item/cmd-magiceat.c
src/cmd-item/cmd-smith.c
src/grid/grid.h
src/io/read-pref-file.c
src/io/save.c
src/main-win.c
src/main/init.c
src/mind/racial.c
src/object-enchant/artifact.h
src/system/angband.h
src/system/h-basic.h
src/system/h-config.h
src/system/h-system.h
src/term/readdib.c
src/view/display-characteristic.c
src/view/display-util.c
src/wizard/wizard-spoiler.c

index abf8ab5..184b2ac 100644 (file)
@@ -180,7 +180,7 @@ bool autopick_autoregister(player_type *player_ptr, object_type *o_ptr)
        else
        {
                /*
-                * File could not be opened for reading.  Assume angband_header not
+                * File could not be opened for reading.  Assume header not
                 * present.
                 */
                player_ptr->autopick_autoregister = FALSE;
index c4dd2ff..0b85430 100644 (file)
@@ -18,9 +18,9 @@
  * point.
  * These three functions automatically delete old dumped lines
  * before adding new ones.  Since there are various kinds of automatic
- * dumps in a single file, we add a angband_header and a footer with a type
+ * dumps in a single file, we add a header and a footer with a type
  * name for every automatic dump, and kill old lines only when the
- * lines have the correct type of angband_header and footer.
+ * lines have the correct type of header and footer.
  * We need to be quite paranoid about correctness; the user might
  * (mistakenly) edit the file by hand, and see all their work come
  * to nothing on the next auto dump otherwise.  The current code only
index 659b0c5..48ef9ea 100644 (file)
@@ -230,7 +230,7 @@ static OBJECT_SUBTYPE_VALUE select_magic_eater(player_type *creature_ptr, bool o
 
                        y = 1;
 
-                       /* Print angband_header(s) */
+                       /* Print header(s) */
 #ifdef JP
                        prt(format("                           %s 失率                           %s 失率", (tval == TV_ROD ? "  状態  " : "使用回数"), (tval == TV_ROD ? "  状態  " : "使用回数")), y++, x);
 #else
index 3b63944..a4b9a7b 100644 (file)
@@ -970,7 +970,7 @@ static void add_essence(player_type *creature_ptr, ESSENCE_IDX mode)
                                        for (y = 1; y < 24; y++)
                                                prt("", y, x);
 
-                                       /* Print angband_header(s) */
+                                       /* Print header(s) */
 #ifdef JP
                                        prt(format("   %-43s %6s/%s", "能力(必要エッセンス)", "必要数", "所持数"), 1, x);
 
index 627c7d4..0b5772a 100644 (file)
@@ -5,7 +5,7 @@
  * @brief ダンジョンの生成処理の基幹部分ヘッダーファイル
  * @date 2014/08/15
  * @details
- * Purpose: angband_header file for grid.c, used only in dungeon generation
+ * Purpose: header file for grid.c, used only in dungeon generation
  * files (generate.c, rooms.c)
  * @author
  * Copyright (c) 1989 James E. Wilson, Robert A. Koeneke
index 20f44d0..107db5a 100644 (file)
@@ -9,7 +9,7 @@
  * auto_dump_printf(fmt, ...)
  *     Dump a formatted string using fprintf().
  * open_auto_dump(buf, mark)
- *     Open a file, remove old dump, and add new angband_header.
+ *     Open a file, remove old dump, and add new header.
  * close_auto_dump(void)
  *     Add a footer, and close the file.
  */
index 58bdd4e..7cdc91c 100644 (file)
@@ -1162,7 +1162,7 @@ static bool wr_savefile_new(player_type *player_ptr)
        current_world_ptr->sf_saves++;
 
        /*** Actually write the file ***/
-       /* Dump the file angband_header */
+       /* Dump the file header */
        xor_byte = 0;
        wr_byte(FAKE_VER_MAJOR);
        xor_byte = 0;
index fa941b2..267b874 100644 (file)
@@ -28,7 +28,7 @@
 * make sure to obtain various extra files as described below.
 *
 * The official compilation uses the CodeWarrior Pro compiler, which
-* includes a special project file and precompilable angband_header file.
+* includes a special project file and precompilable header file.
 * </p>
 *
 * <p>
index cccf9c2..ee7e76d 100644 (file)
@@ -237,7 +237,7 @@ concptr err_str[PARSE_ERROR_MAX] =
 #else
        "parse error",
        "obsolete file",
-       "missing record angband_header",
+       "missing record header",
        "non-sequential records",
        "invalid flag specification",
        "undefined directive",
@@ -249,7 +249,6 @@ concptr err_str[PARSE_ERROR_MAX] =
 
 };
 
-
 /*
  * File headers
  */
@@ -310,7 +309,7 @@ static errr init_info_raw(int fd, angband_header *head)
 {
        angband_header test;
 
-       /* Read and Verify the angband_header */
+       /* Read and Verify the header */
        if (fd_read(fd, (char*)(&test), sizeof(angband_header)) ||
                (test.v_major != head->v_major) ||
                (test.v_minor != head->v_minor) ||
@@ -324,7 +323,7 @@ static errr init_info_raw(int fd, angband_header *head)
                return -1;
        }
 
-       /* Accept the angband_header */
+       /* Accept the header */
        (*head) = test;
 
        /* Allocate the "*_info" array */
@@ -367,7 +366,7 @@ static errr init_info_raw(int fd, angband_header *head)
 
 /*!
  * @brief ヘッダ構造体の更新
- * Initialize the angband_header of an *_info.raw file.
+ * Initialize the header of an *_info.raw file.
  * @param head rawファイルのヘッダ
  * @param num データ数
  * @param len データの長さ
@@ -581,7 +580,7 @@ static errr init_info(concptr filename, angband_header *head, void **info, char
  */
 static errr init_f_info(void)
 {
-       /* Init the angband_header */
+       /* Init the header */
        init_header(&f_head, max_f_idx, sizeof(feature_type));
 
        /* Save a pointer to the parsing function */
@@ -602,7 +601,7 @@ static errr init_f_info(void)
  */
 static errr init_k_info(void)
 {
-       /* Init the angband_header */
+       /* Init the header */
        init_header(&k_head, max_k_idx, sizeof(object_kind));
 
        /* Save a pointer to the parsing function */
@@ -620,7 +619,7 @@ static errr init_k_info(void)
  */
 static errr init_a_info(void)
 {
-       /* Init the angband_header */
+       /* Init the header */
        init_header(&a_head, max_a_idx, sizeof(artifact_type));
 
        /* Save a pointer to the parsing function */
@@ -638,7 +637,7 @@ static errr init_a_info(void)
  */
 static errr init_e_info(void)
 {
-       /* Init the angband_header */
+       /* Init the header */
        init_header(&e_head, max_e_idx, sizeof(ego_item_type));
 
        /* Save a pointer to the parsing function */
@@ -656,7 +655,7 @@ static errr init_e_info(void)
  */
 static errr init_r_info(void)
 {
-       /* Init the angband_header */
+       /* Init the header */
        init_header(&r_head, max_r_idx, sizeof(monster_race));
 
        /* Save a pointer to the parsing function */
@@ -674,7 +673,7 @@ static errr init_r_info(void)
  */
 static errr init_d_info(void)
 {
-       /* Init the angband_header */
+       /* Init the header */
        init_header(&d_head, current_world_ptr->max_d_idx, sizeof(dungeon_type));
 
        /* Save a pointer to the parsing function */
@@ -695,7 +694,7 @@ static errr init_d_info(void)
  */
 errr init_v_info(void)
 {
-       /* Init the angband_header */
+       /* Init the header */
        init_header(&v_head, max_v_idx, sizeof(vault_type));
 
        /* Save a pointer to the parsing function */
@@ -713,7 +712,7 @@ errr init_v_info(void)
  */
 static errr init_s_info(void)
 {
-       /* Init the angband_header */
+       /* Init the header */
        init_header(&s_head, MAX_CLASS, sizeof(skill_table));
 
        /* Save a pointer to the parsing function */
@@ -731,7 +730,7 @@ static errr init_s_info(void)
  */
 static errr init_m_info(void)
 {
-       /* Init the angband_header */
+       /* Init the header */
        init_header(&m_head, MAX_CLASS, sizeof(player_magic));
 
        /* Save a pointer to the parsing function */
index 66dd1b6..5d33123 100644 (file)
@@ -1807,7 +1807,7 @@ void do_cmd_racial_power(player_type *creature_ptr)
                                        redraw = TRUE;
                                        if (!use_menu) screen_save();
 
-                                       /* Print angband_header(s) */
+                                       /* Print header(s) */
                                        if (num < 18)
                                                prt(_("                            Lv   MP 失率", "                            Lv Cost Fail"), y++, x);
                                        else
index d8202c0..07fabc7 100644 (file)
@@ -15,8 +15,8 @@ typedef struct artifact_type artifact_type;
  */
 struct artifact_type
 {
-       STR_OFFSET name;                        /*!< アーティファクト名(angband_headerオフセット参照) / Name (offset) */
-       STR_OFFSET text;                        /*!< アーティファクト解説(angband_headerオフセット参照) / Text (offset) */
+       STR_OFFSET name;                        /*!< アーティファクト名(headerオフセット参照) / Name (offset) */
+       STR_OFFSET text;                        /*!< アーティファクト解説(headerオフセット参照) / Text (offset) */
 
        tval_type tval;         /*!< ベースアイテム大項目ID / Artifact type */
        OBJECT_SUBTYPE_VALUE sval;      /*!< ベースアイテム小項目ID / Artifact sub type */
index 652ca67..b352f58 100644 (file)
@@ -2,7 +2,7 @@
 /*!
  * @file angband.h
  * @brief Angband(変愚蛮怒)メインヘッダファイル
- * Main "Angband" angband_header file
+ * Main "Angband" header file
  * @date 2014/08/08
  * @author
  * Copyright (c) 1989 James E. Wilson
@@ -24,7 +24,7 @@
 
 
 /*
- * Then, include the angband_header files for the low-level code
+ * Then, include the header files for the low-level code
  */
 #include "term/z-util.h"
 #include "term/z-virt.h"
@@ -34,7 +34,7 @@
 
 
 /*
- * Include the "Angband" configuration angband_header
+ * Include the "Angband" configuration header
  */
 #include "system/gamevalue.h"
 #include "cmd-io/cmd-gameoption.h"
index 5454334..85581cc 100644 (file)
@@ -1,7 +1,7 @@
 /*!
  * @file h-basic.h
  * @brief 変愚時追加された基本事項のヘッダーファイル /
- * The most basic "include" file. This file simply includes other low level angband_header files.
+ * The most basic "include" file. This file simply includes other low level header files.
  * @date 2014/08/15
  * @author
  * 不明(変愚蛮怒スタッフ?)
index 4e2c241..2d5921a 100644 (file)
@@ -1,7 +1,7 @@
 /*!
  * @file h-config.h
  * @brief 主に変愚/Zang時追加された基本事項のヘッダーファイル /
- * The most basic "include" file. This file simply includes other low level angband_header files.
+ * The most basic "include" file. This file simply includes other low level header files.
  * @date 2014/08/15
  * @author
  * 不明(変愚蛮怒スタッフ?)
index cf458bd..04e43fd 100644 (file)
@@ -1,7 +1,7 @@
 /*!
  * @file h-system.h
  * @brief 変愚蛮怒用システムヘッダーファイル /
- * The most basic "include" file. This file simply includes other low level angband_header files.
+ * The most basic "include" file. This file simply includes other low level header files.
  * @date 2014/08/16
  * @author
  * 不明(変愚蛮怒スタッフ?)
index b0fcef0..2fa32a3 100644 (file)
@@ -247,7 +247,7 @@ BOOL ReadDIB(HWND hWnd, LPSTR lpFileName, DIBINIT *pInfo)
        }
        else
        {
-               /* get to the start of the angband_header and read INFOHEADER */
+               /* get to the start of the header and read INFOHEADER */
                _llseek(fh, sizeof(BITMAPFILEHEADER), SEEK_SET);
                if (sizeof(BITMAPINFOHEADER) != _lread(fh, (LPSTR)lpbi, sizeof(BITMAPINFOHEADER)))
                {
@@ -280,7 +280,7 @@ BOOL ReadDIB(HWND hWnd, LPSTR lpFileName, DIBINIT *pInfo)
                lpbi->biSizeImage /= 2;
        }
 
-       /* get a proper-sized buffer for angband_header, color table and bits */
+       /* get a proper-sized buffer for header, color table and bits */
        GlobalUnlock(pInfo->hDIB);
        pInfo->hDIB = GlobalReAlloc(pInfo->hDIB, lpbi->biSize +
                                                                                nNumColors * sizeof(RGBQUAD) +
@@ -319,7 +319,7 @@ BOOL ReadDIB(HWND hWnd, LPSTR lpFileName, DIBINIT *pInfo)
                }
        }
 
-       /* offset to the bits from start of DIB angband_header */
+       /* offset to the bits from start of DIB header */
        offBits = (WORD)lpbi->biSize + nNumColors * sizeof(RGBQUAD);
 
        if (bf.bfOffBits != 0L)
index a5eeea9..fec5937 100644 (file)
@@ -150,7 +150,7 @@ static void decide_colors(player_type *creature_ptr, u16b mode, TERM_LEN row, TE
  * @brief プレイヤーの特性フラグ一種を表示する
  * @param row コンソール表示位置の左上行
  * @param col コンソール表示位置の左上列
- * @param angband_header コンソール上で表示する特性名
+ * @param header コンソール上で表示する特性名
  * @param header_color 耐性等のパラメータ名 の色
  * @param header_col 「耐性等のパラメータ名 の色」の元々の位置
  * @param flag1 参照する特性ID
@@ -158,7 +158,7 @@ static void decide_colors(player_type *creature_ptr, u16b mode, TERM_LEN row, TE
  * @param f プレイヤーの特性情報構造体
  * @return なし
  */
-static void display_one_characteristic(TERM_LEN row, TERM_LEN col, concptr angband_header, byte header_color, int header_col, int flag1, bool vuln, all_player_flags *f)
+static void display_one_characteristic(TERM_LEN row, TERM_LEN col, concptr header, byte header_color, int header_col, int flag1, bool vuln, all_player_flags *f)
 {
        c_put_str((byte)(vuln ? TERM_RED : TERM_SLATE), ".", row, col);
        if (have_flag(f->player_flags, flag1))
@@ -188,7 +188,7 @@ static void display_one_characteristic(TERM_LEN row, TERM_LEN col, concptr angba
        if (vuln)
                c_put_str(TERM_RED, "v", row, col + 1);
 
-       c_put_str(header_color, angband_header, row, header_col);
+       c_put_str(header_color, header, row, header_col);
 }
 
 
@@ -197,13 +197,13 @@ static void display_one_characteristic(TERM_LEN row, TERM_LEN col, concptr angba
  * @param creature_ptr プレーヤーへの参照ポインタ
  * @param row コンソール表示位置の左上行
  * @param col コンソール表示位置の左上列
- * @param angband_header コンソール上で表示する特性名
+ * @param header コンソール上で表示する特性名
  * @param flag1 参照する特性ID
  * @param f プレイヤーの特性情報構造体
  * @param mode 表示オプション
  * @return なし
  */
-static void process_one_characteristic(player_type *creature_ptr, TERM_LEN row, TERM_LEN col, concptr angband_header, int flag1, all_player_flags *f, u16b mode)
+static void process_one_characteristic(player_type *creature_ptr, TERM_LEN row, TERM_LEN col, concptr header, int flag1, all_player_flags *f, u16b mode)
 {
        byte header_color = TERM_L_DARK;
        int header_col = col;
@@ -212,19 +212,19 @@ static void process_one_characteristic(player_type *creature_ptr, TERM_LEN row,
                !(have_flag(f->known_obj_imm, flag1) || have_flag(f->player_imm, flag1) || have_flag(f->tim_player_imm, flag1)))
                vuln = TRUE;
 
-       col += strlen(angband_header) + 1;
+       col += strlen(header) + 1;
        decide_colors(creature_ptr, mode, row, &col, flag1, &header_color, vuln);
        if (mode & DP_IMM)
        {
                if (header_color != TERM_L_DARK)
                {
-                       c_put_str(header_color, angband_header, row, header_col);
+                       c_put_str(header_color, header, row, header_col);
                }
 
                return;
        }
 
-       display_one_characteristic(row, col, angband_header, header_color, header_col, flag1, vuln, f);
+       display_one_characteristic(row, col, header, header_color, header_col, flag1, vuln, f);
 }
 
 
index 4e52e26..a5708d8 100644 (file)
@@ -6,7 +6,7 @@ static struct
        int col;
        int row;
        int len;
-       char angband_header[20];
+       char header[20];
 } disp_player_line[]
 #ifdef JP
 = {
@@ -118,7 +118,7 @@ static struct
  */
 void display_player_one_line(int entry, concptr val, TERM_COLOR attr)
 {
-       concptr head = disp_player_line[entry].angband_header;
+       concptr head = disp_player_line[entry].header;
        int head_len = strlen(head);
        int row = disp_player_line[entry].row;
        int col = disp_player_line[entry].col;
index d45b065..9cff69e 100644 (file)
@@ -1332,7 +1332,7 @@ static void print_header(void)
 /*
  * This is somewhat ugly.
  *
- * Given a angband_header ("Resist", e.g.), a list ("Fire", "Cold", Acid", e.g.),
+ * Given a header ("Resist", e.g.), a list ("Fire", "Cold", Acid", e.g.),
  * and a separator character (',', e.g.), write the list to the spoiler file
  * in a "nice" format, such as:
  *
@@ -1373,12 +1373,12 @@ static void print_header(void)
 
 /*!
  * @brief フラグ名称を出力する汎用関数
- * @param angband_header ヘッダに出力するフラグ群の名前
+ * @param header ヘッダに出力するフラグ群の名前
  * @param list フラグ名リスト
  * @param separator フラグ表示の区切り記号
  * @return なし
  */
-static void spoiler_outlist(concptr angband_header, concptr *list, char separator)
+static void spoiler_outlist(concptr header, concptr *list, char separator)
 {
        int line_len, buf_len;
        char line[MAX_LINE_LEN + 1], buf[80];
@@ -1389,10 +1389,10 @@ static void spoiler_outlist(concptr angband_header, concptr *list, char separato
        /* This function always indents */
        strcpy(line, INDENT1);
 
-       /* Create angband_header (if one was given) */
-       if (angband_header && (angband_header[0]))
+       /* Create header (if one was given) */
+       if (header && (header[0]))
        {
-               strcat(line, angband_header);
+               strcat(line, header);
                strcat(line, " ");
        }
 
@@ -1581,7 +1581,7 @@ static void spoil_artifact(player_type *player_ptr, concptr fname)
                return;
        }
 
-       /* Dump the angband_header */
+       /* Dump the header */
        print_header();
 
        /* List the artifacts by tval */
@@ -1661,12 +1661,12 @@ static void spoil_mon_desc(concptr fname)
        /* Allocate the "who" array */
        C_MAKE(who, max_r_idx, MONRACE_IDX);
 
-       /* Dump the angband_header */
+       /* Dump the header */
        fprintf(fff, "Monster Spoilers for Hengband Version %d.%d.%d\n",
                FAKE_VER_MAJOR - 10, FAKE_VER_MINOR, FAKE_VER_PATCH);
        fprintf(fff, "------------------------------------------\n\n");
 
-       /* Dump the angband_header */
+       /* Dump the header */
        fprintf(fff, "    %-38.38s%4s%4s%4s%7s%5s  %11.11s\n",
                "Name", "Lev", "Rar", "Spd", "Hp", "Ac", "Visual Info");
        fprintf(fff, "%-42.42s%4s%4s%4s%7s%5s  %11.11s\n",
@@ -1986,7 +1986,7 @@ static void spoil_mon_info(player_type *player_ptr, concptr fname)
        }
 
 
-       /* Dump the angband_header */
+       /* Dump the header */
        sprintf(buf, "Monster Spoilers for Hengband Version %d.%d.%d\n",
                FAKE_VER_MAJOR - 10, FAKE_VER_MINOR, FAKE_VER_PATCH);
 
@@ -2186,7 +2186,7 @@ static void spoil_mon_evol(concptr fname)
                return;
        }
 
-       /* Dump the angband_header */
+       /* Dump the header */
        sprintf(buf, "Monster Spoilers for Hengband Version %d.%d.%d\n",
                FAKE_VER_MAJOR - 10, FAKE_VER_MINOR, FAKE_VER_PATCH);
 
@@ -2478,7 +2478,7 @@ void spoil_random_artifact(player_type *creature_ptr, concptr fname)
                return;
        }
 
-       /* Dump the angband_header */
+       /* Dump the header */
        sprintf(buf, "Random artifacts list.\r");
        spoiler_underline(buf);