• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision52ac4782ac93d10a5cc3320cac649e0411ac3c46 (tree)
Time2019-05-18 19:12:07
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 savefile, savefile_base を files.c/h へ移動.

Change Summary

Incremental Difference

--- a/src/externs.h
+++ b/src/externs.h
@@ -72,8 +72,6 @@ extern POSITION panel_col_prt, panel_row_prt;
7272 extern int player_uid;
7373 extern int player_euid;
7474 extern int player_egid;
75-extern char savefile[1024];
76-extern char savefile_base[40];
7775 extern pos_list tmp_pos;
7876 extern STR_OFFSET quark__num;
7977 extern concptr *quark__str;
--- a/src/files.c
+++ b/src/files.c
@@ -80,6 +80,14 @@ concptr ANGBAND_DIR_XTRA; //!< Various extra files (binary) These files are rare
8080
8181 s16b signal_count; /* Hack -- Count interupts */
8282
83+/*
84+ * Buffer to hold the current savefile name
85+ * 'savefile' holds full path name. 'savefile_base' holds only base name.
86+ */
87+char savefile[1024];
88+char savefile_base[40];
89+
90+
8391
8492 /*
8593 * You may or may not want to use the following "#undef".
--- a/src/files.h
+++ b/src/files.h
@@ -1,5 +1,8 @@
11 #pragma once
22
3+extern char savefile[1024];
4+extern char savefile_base[40];
5+
36 extern concptr ANGBAND_DIR;
47 extern concptr ANGBAND_DIR_APEX;
58 extern concptr ANGBAND_DIR_BONE;
--- a/src/variable.c
+++ b/src/variable.c
@@ -49,14 +49,6 @@ int player_uid;
4949 int player_euid;
5050 int player_egid;
5151
52-/*
53- * Buffer to hold the current savefile name
54- * 'savefile' holds full path name. 'savefile_base' holds only base name.
55- */
56-char savefile[1024];
57-char savefile_base[40];
58-
59-
6052 pos_list tmp_pos;
6153
6254 /*
Show on old repository browser