• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision2d49d87a068af234c985887bb7ddf59b50e8c3da (tree)
Time2019-05-20 00:05:36
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 keymap_act を util.c/h へ移動.

Change Summary

Incremental Difference

--- a/src/externs.h
+++ b/src/externs.h
@@ -68,7 +68,6 @@ extern concptr *quark__str;
6868
6969 extern term *angband_term[8];
7070
71-extern concptr keymap_act[KEYMAP_MODES][256];
7271 extern player_type *p_ptr;
7372
7473 extern MONSTER_IDX pet_t_m_idx;
--- a/src/util.c
+++ b/src/util.c
@@ -33,6 +33,10 @@ const char hexsym[16] =
3333 '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'
3434 };
3535
36+/*
37+ * Keymaps for each "mode" associated with each keypress.
38+ */
39+concptr keymap_act[KEYMAP_MODES][256];
3640
3741 /*
3842 * The next "free" index to use
--- a/src/util.h
+++ b/src/util.h
@@ -74,6 +74,8 @@ extern TERM_LEN command_gap;
7474 extern s16b command_wrk;
7575 extern s16b command_new;
7676
77+extern concptr keymap_act[KEYMAP_MODES][256];
78+
7779
7880 /*
7981 * Hack -- conditional (or "bizarre") externs
--- a/src/variable.c
+++ b/src/variable.c
@@ -51,11 +51,6 @@ concptr *quark__str;
5151 */
5252 term *angband_term[8];
5353
54-/*
55- * Keymaps for each "mode" associated with each keypress.
56- */
57-concptr keymap_act[KEYMAP_MODES][256];
58-
5954
6055
6156 /*** Player information ***/
Show on old repository browser