• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revisiona3cb988d1c500b1b4086f2c84c71ae7ed43b1274 (tree)
Time2019-03-12 23:34:59
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 コメント整理。 / Refactor comments.

Change Summary

Incremental Difference

--- a/src/cmd4.c
+++ b/src/cmd4.c
@@ -4627,8 +4627,6 @@ void do_cmd_load_screen(void)
46274627 Term_draw(x, y, a, c);
46284628 }
46294629 }
4630-
4631- /* Close it */
46324630 my_fclose(fff);
46334631
46344632 prt(_("ファイルに書き出された画面(記念撮影)をロードしました。", "Screen dump loaded."), 0, 0);
@@ -4952,8 +4950,6 @@ void do_cmd_save_screen_html_aux(char *filename, int message)
49524950
49534951 /* Skip a line */
49544952 fprintf(fff, "\n");
4955-
4956- /* Close it */
49574953 my_fclose(fff);
49584954
49594955 if (message) {
@@ -5112,8 +5108,6 @@ void do_cmd_save_screen(void)
51125108
51135109 /* Skip a line */
51145110 fprintf(fff, "\n");
5115-
5116- /* Close it */
51175111 my_fclose(fff);
51185112
51195113 msg_print(_("画面(記念撮影)をファイルに書き出しました。", "Screen dump saved."));
--- a/src/files.c
+++ b/src/files.c
@@ -1337,8 +1337,6 @@ errr check_time_init(void)
13371337 if (prefix(buf, "FRI:")) strcpy(days[5], buf);
13381338 if (prefix(buf, "SAT:")) strcpy(days[6], buf);
13391339 }
1340-
1341- /* Close it */
13421340 my_fclose(fp);
13431341
13441342 #endif
@@ -5048,8 +5046,6 @@ errr file_character(concptr name)
50485046 }
50495047
50505048 (void)make_character_dump(fff);
5051-
5052- /* Close it */
50535049 my_fclose(fff);
50545050
50555051
@@ -5426,7 +5422,6 @@ bool show_file(bool show_version, concptr name, concptr what, int line, BIT_FLAG
54265422 /* Re-open the file if needed */
54275423 if (next > line)
54285424 {
5429- /* Close it */
54305425 my_fclose(fff);
54315426
54325427 /* Hack -- Re-Open the file */
@@ -5705,8 +5700,6 @@ bool show_file(bool show_version, concptr name, concptr what, int line, BIT_FLAG
57055700 strcpy (xtmp, "");
57065701
57075702 if (!get_string(_("ファイル名: ", "File name: "), xtmp, 80)) continue;
5708-
5709- /* Close it */
57105703 my_fclose(fff);
57115704
57125705 /* Build the filename */
@@ -5730,8 +5723,6 @@ bool show_file(bool show_version, concptr name, concptr what, int line, BIT_FLAG
57305723
57315724 while (!my_fgets(fff, buff, sizeof(buff)))
57325725 my_fputs(ffp, buff, 80);
5733-
5734- /* Close it */
57355726 my_fclose(fff);
57365727 my_fclose(ffp);
57375728
--- a/src/init2.c
+++ b/src/init2.c
@@ -478,8 +478,6 @@ static errr init_info(concptr filename, header *head,
478478 /* Attempt to parse the "raw" file */
479479 if (!err)
480480 err = init_info_raw(fd, head);
481-
482- /* Close it */
483481 (void)fd_close(fd);
484482 }
485483
@@ -516,8 +514,6 @@ static errr init_info(concptr filename, header *head,
516514
517515 /* Parse the file */
518516 err = init_info_txt(fp, buf, head, head->parse_info_txt);
519-
520- /* Close it */
521517 my_fclose(fp);
522518
523519 /* Errors */
@@ -630,8 +626,6 @@ static errr init_info(concptr filename, header *head,
630626
631627 /* Attempt to parse the "raw" file */
632628 err = init_info_raw(fd, head);
633-
634- /* Close it */
635629 (void)fd_close(fd);
636630
637631 /* Error */
@@ -1743,8 +1737,6 @@ void init_angband(void)
17431737 /* Crash and burn */
17441738 init_angband_aux(why);
17451739 }
1746-
1747- /* Close it */
17481740 (void)fd_close(fd);
17491741
17501742
@@ -1811,8 +1803,6 @@ void init_angband(void)
18111803 init_angband_aux(why);
18121804 }
18131805 }
1814-
1815- /* Close it */
18161806 (void)fd_close(fd);
18171807
18181808 put_title();
--- a/src/wizard2.c
+++ b/src/wizard2.c
@@ -1666,8 +1666,6 @@ static void do_cmd_dump_options(void)
16661666 /* Free the "exist" array (2-dimension) */
16671667 C_KILL(*exist, NUM_O_BIT * NUM_O_SET, int);
16681668 C_KILL(exist, NUM_O_SET, int *);
1669-
1670- /* Close it */
16711669 my_fclose(fff);
16721670
16731671 msg_format(_("オプションbit使用状況をファイル %s に書き出しました。", "Option bits usage dump saved to file %s."), buf);
Show on old repository browser