• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revisione0659fde2070146f75e7705a0758140afa88d297 (tree)
Time2019-05-13 22:39:00
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 macro* の実体を util.c へ移動.

Change Summary

Incremental Difference

--- a/src/util.c
+++ b/src/util.c
@@ -62,6 +62,32 @@ u32b *message__ptr;
6262 */
6363 char *message__buf;
6464
65+/*
66+ * Number of active macros.
67+ */
68+s16b macro__num;
69+
70+/*
71+ * Array of macro patterns [MACRO_MAX]
72+ */
73+concptr *macro__pat;
74+
75+/*
76+ * Array of macro actions [MACRO_MAX]
77+ */
78+concptr *macro__act;
79+
80+/*
81+ * Array of macro types [MACRO_MAX]
82+ */
83+bool *macro__cmd;
84+
85+/*
86+ * Current macro action [1024]
87+ */
88+char *macro__buf;
89+
90+
6591 bool inkey_base; /* See the "inkey()" function */
6692 bool inkey_xtra; /* See the "inkey()" function */
6793 bool inkey_scan; /* See the "inkey()" function */
--- a/src/variable.c
+++ b/src/variable.c
@@ -88,33 +88,6 @@ char savefile_base[40];
8888
8989 pos_list tmp_pos;
9090
91-
92-/*
93- * Number of active macros.
94- */
95-s16b macro__num;
96-
97-/*
98- * Array of macro patterns [MACRO_MAX]
99- */
100-concptr *macro__pat;
101-
102-/*
103- * Array of macro actions [MACRO_MAX]
104- */
105-concptr *macro__act;
106-
107-/*
108- * Array of macro types [MACRO_MAX]
109- */
110-bool *macro__cmd;
111-
112-/*
113- * Current macro action [1024]
114- */
115-char *macro__buf;
116-
117-
11891 /*
11992 * The number of quarks
12093 */
Show on old repository browser