• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revisionf1dc30e005d2e982a4a41d3fd3720cd498edf8c1 (tree)
Time2019-06-10 22:55:35
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 angband_term を term.c/h に移動.

Change Summary

Incremental Difference

--- a/src/chuukei.c
+++ b/src/chuukei.c
@@ -10,9 +10,11 @@
1010
1111 #include "files.h"
1212 #include "util.h"
13+#include "term.h"
1314 #include "cmd-dump.h"
1415 #include "inet.h"
1516 #include "japanese.h"
17+#include "term.h"
1618
1719 #include <stdio.h>
1820 #include <stdarg.h>
--- a/src/core.c
+++ b/src/core.c
@@ -14,6 +14,7 @@
1414 #include "util.h"
1515 #include "core.h"
1616 #include "inet.h"
17+#include "term.h"
1718
1819 #include "creature.h"
1920
--- a/src/externs.h
+++ b/src/externs.h
@@ -58,8 +58,6 @@ extern pos_list tmp_pos;
5858 extern STR_OFFSET quark__num;
5959 extern concptr *quark__str;
6060
61-extern term *angband_term[8];
62-
6361 extern player_type *p_ptr;
6462
6563 extern MONSTER_IDX pet_t_m_idx;
--- a/src/term.c
+++ b/src/term.c
@@ -346,6 +346,11 @@ const concptr ident_info[] =
346346 NULL
347347 };
348348
349+/*
350+ * The array of window pointers
351+ */
352+term *angband_term[8];
353+
349354 /*!
350355 * スクリーン表示色キャラクタ /
351356 * Encode the screen colors
--- a/src/term.h
+++ b/src/term.h
@@ -49,6 +49,8 @@ extern const concptr window_flag_desc[32];
4949 extern const concptr ident_info[];
5050 extern const concptr color_char;
5151
52+extern term *angband_term[8];
53+
5254 extern TERM_COLOR misc_to_attr[256];
5355 extern SYMBOL_CODE misc_to_char[256];
5456 extern TERM_COLOR tval_to_attr[128];
--- a/src/variable.c
+++ b/src/variable.c
@@ -30,11 +30,6 @@ STR_OFFSET quark__num;
3030 */
3131 concptr *quark__str;
3232
33-/*
34- * The array of window pointers
35- */
36-term *angband_term[8];
37-
3833
3934
4035 /*** Player information ***/
--- a/src/view-mainwindow.c
+++ b/src/view-mainwindow.c
@@ -57,12 +57,10 @@ static object_type *autopick_obj; /*!< 各種自動拾い処理時に使うオ
5757 /*
5858 * Dungeon size info
5959 */
60-
6160 POSITION panel_row_min, panel_row_max;
6261 POSITION panel_col_min, panel_col_max;
6362 POSITION panel_col_prt, panel_row_prt;
6463
65-
6664 /*
6765 * Some screen locations for various display routines
6866 * Currently, row 8 and 15 are the only "blank" rows.
Show on old repository browser