• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision3245612b1af49a746d5796a960f27c03418f7133 (tree)
Time2019-06-10 23:24:39
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 quarknum, quarkstr を util.c/h へ移動.

Change Summary

Incremental Difference

--- a/src/externs.h
+++ b/src/externs.h
@@ -54,8 +54,6 @@ extern bool repair_objects;
5454 * Software options (set via the '=' command). See "tables.c"
5555 */
5656
57-extern STR_OFFSET quark__num;
58-extern concptr *quark__str;
5957
6058 extern player_type *p_ptr;
6159
--- a/src/util.c
+++ b/src/util.c
@@ -108,6 +108,16 @@ bool use_menu;
108108
109109 pos_list tmp_pos;
110110
111+/*
112+ * The number of quarks
113+ */
114+STR_OFFSET quark__num;
115+
116+/*
117+ * The pointers to the quarks [QUARK_MAX]
118+ */
119+concptr *quark__str;
120+
111121 static int num_more = 0;
112122
113123 /* Save macro trigger string for use in inkey_special() */
@@ -130,6 +140,7 @@ TERM_LEN command_gap = 999; /* See "object1.c" */
130140 s16b command_new; /* Command chaining from inven/equip view */
131141
132142
143+
133144 #if 0
134145 #ifndef HAS_STRICMP
135146
--- a/src/util.h
+++ b/src/util.h
@@ -128,6 +128,8 @@ extern bool use_menu;
128128
129129 extern pos_list tmp_pos;
130130
131+extern STR_OFFSET quark__num;
132+extern concptr *quark__str;
131133 /*
132134 * Automatically generated "variable" declarations
133135 */
--- a/src/variable.c
+++ b/src/variable.c
@@ -18,18 +18,6 @@ bool repair_monsters; /* Hack -- optimize detect monsters */
1818 bool repair_objects; /* Hack -- optimize detect objects */
1919
2020
21-/*
22- * The number of quarks
23- */
24-STR_OFFSET quark__num;
25-
26-/*
27- * The pointers to the quarks [QUARK_MAX]
28- */
29-concptr *quark__str;
30-
31-
32-
3321 /*** Player information ***/
3422
3523 /*
Show on old repository browser