OSDN Git Service

[Refactor] #37353 コメント整理。 / Refactor comments.
authordeskull <deskull@users.sourceforge.jp>
Tue, 12 Mar 2019 14:34:59 +0000 (23:34 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Tue, 12 Mar 2019 14:34:59 +0000 (23:34 +0900)
src/cmd4.c
src/files.c
src/init2.c
src/wizard2.c

index d93b72b..e0f7246 100644 (file)
@@ -4627,8 +4627,6 @@ void do_cmd_load_screen(void)
                        Term_draw(x, y, a, c);
                }
        }
-
-       /* Close it */
        my_fclose(fff);
 
        prt(_("ファイルに書き出された画面(記念撮影)をロードしました。", "Screen dump loaded."), 0, 0);
@@ -4952,8 +4950,6 @@ void do_cmd_save_screen_html_aux(char *filename, int message)
 
        /* Skip a line */
        fprintf(fff, "\n");
-
-       /* Close it */
        my_fclose(fff);
 
        if (message) {
@@ -5112,8 +5108,6 @@ void do_cmd_save_screen(void)
 
                /* Skip a line */
                fprintf(fff, "\n");
-
-               /* Close it */
                my_fclose(fff);
 
                msg_print(_("画面(記念撮影)をファイルに書き出しました。", "Screen dump saved."));
index 3ecc3c0..19eb7af 100644 (file)
@@ -1337,8 +1337,6 @@ errr check_time_init(void)
                if (prefix(buf, "FRI:")) strcpy(days[5], buf);
                if (prefix(buf, "SAT:")) strcpy(days[6], buf);
        }
-
-       /* Close it */
        my_fclose(fp);
 
 #endif
@@ -5048,8 +5046,6 @@ errr file_character(concptr name)
        }
 
        (void)make_character_dump(fff);
-
-       /* Close it */
        my_fclose(fff);
 
 
@@ -5426,7 +5422,6 @@ bool show_file(bool show_version, concptr name, concptr what, int line, BIT_FLAG
                /* Re-open the file if needed */
                if (next > line)
                {
-                       /* Close it */
                        my_fclose(fff);
 
                        /* Hack -- Re-Open the file */
@@ -5705,8 +5700,6 @@ bool show_file(bool show_version, concptr name, concptr what, int line, BIT_FLAG
                        strcpy (xtmp, "");
 
                        if (!get_string(_("ファイル名: ", "File name: "), xtmp, 80)) continue;
-
-                       /* Close it */
                        my_fclose(fff);
 
                        /* Build the filename */
@@ -5730,8 +5723,6 @@ bool show_file(bool show_version, concptr name, concptr what, int line, BIT_FLAG
 
                        while (!my_fgets(fff, buff, sizeof(buff)))
                                my_fputs(ffp, buff, 80);
-
-                       /* Close it */
                        my_fclose(fff);
                        my_fclose(ffp);
 
index a3cf8b9..385255c 100644 (file)
@@ -478,8 +478,6 @@ static errr init_info(concptr filename, header *head,
                /* Attempt to parse the "raw" file */
                if (!err)
                        err = init_info_raw(fd, head);
-
-               /* Close it */
                (void)fd_close(fd);
        }
 
@@ -516,8 +514,6 @@ static errr init_info(concptr filename, header *head,
 
                /* Parse the file */
                err = init_info_txt(fp, buf, head, head->parse_info_txt);
-
-               /* Close it */
                my_fclose(fp);
 
                /* Errors */
@@ -630,8 +626,6 @@ static errr init_info(concptr filename, header *head,
 
                /* Attempt to parse the "raw" file */
                err = init_info_raw(fd, head);
-
-               /* Close it */
                (void)fd_close(fd);
 
                /* Error */
@@ -1743,8 +1737,6 @@ void init_angband(void)
                /* Crash and burn */
                init_angband_aux(why);
        }
-
-       /* Close it */
        (void)fd_close(fd);
 
 
@@ -1811,8 +1803,6 @@ void init_angband(void)
                        init_angband_aux(why);
                }
        }
-
-       /* Close it */
        (void)fd_close(fd);
 
        put_title();
index fba66b0..95e797b 100644 (file)
@@ -1666,8 +1666,6 @@ static void do_cmd_dump_options(void)
        /* Free the "exist" array (2-dimension) */
        C_KILL(*exist, NUM_O_BIT * NUM_O_SET, int);
        C_KILL(exist, NUM_O_SET, int *);
-
-       /* Close it */
        my_fclose(fff);
 
        msg_format(_("オプションbit使用状況をファイル %s に書き出しました。", "Option bits usage dump saved to file %s."), buf);