• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision370f83dbec34305c860499a04c234e819334eb6b (tree)
Time2019-05-05 11:40:39
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 load.h を追加して宣言を移動.

Change Summary

Incremental Difference

--- a/Hengband_vcs2017/Hengband/Hengband.vcxproj
+++ b/Hengband_vcs2017/Hengband/Hengband.vcxproj
@@ -322,6 +322,7 @@
322322 <ClInclude Include="..\..\src\history.h" />
323323 <ClInclude Include="..\..\src\init.h" />
324324 <ClInclude Include="..\..\src\kajitips.h" />
325+ <ClInclude Include="..\..\src\load.h" />
325326 <ClInclude Include="..\..\src\melee.h" />
326327 <ClInclude Include="..\..\src\mind.h" />
327328 <ClInclude Include="..\..\src\monster-process.h" />
--- a/Hengband_vcs2017/Hengband/Hengband.vcxproj.filters
+++ b/Hengband_vcs2017/Hengband/Hengband.vcxproj.filters
@@ -738,6 +738,9 @@
738738 <ClInclude Include="..\..\src\save.h">
739739 <Filter>io</Filter>
740740 </ClInclude>
741+ <ClInclude Include="..\..\src\load.h">
742+ <Filter>io</Filter>
743+ </ClInclude>
741744 </ItemGroup>
742745 <ItemGroup>
743746 <None Include="..\..\src\wall.bmp" />
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -32,7 +32,7 @@ hengband_SOURCES = \
3232 gameoption.c gameoption.h gamevalue.h \
3333 grid.c grid.h h-basic.h h-config.h h-define.h \
3434 history.h history.c \
35- h-system.h h-type.h inet.c init.c init.h japanese.c load.c \
35+ h-system.h h-type.h inet.c init.c init.h japanese.c load.c load.h \
3636 dungeon-file.c dungeon-file.h \
3737 main.c main-x11.c main-gcu.c \
3838 melee.h melee1.c mind.c mind.h \
--- a/src/externs.h
+++ b/src/externs.h
@@ -233,16 +233,10 @@ extern bool mon_fight;
233233 extern bool generate_encounter;
234234 extern concptr screen_dump;
235235
236-
237236 extern DEPTH *max_dlv;
238237 extern COMMAND_CODE now_message;
239238 extern bool use_menu;
240239
241-
242-/* load.c */
243-extern errr rd_savefile_new(void);
244-extern bool load_floor(saved_floor_type *sf_ptr, BIT_FLAGS mode);
245-
246240 /* racial.c */
247241 extern void do_cmd_racial_power(void);
248242
--- a/src/floor-save.c
+++ b/src/floor-save.c
@@ -11,6 +11,7 @@
1111 */
1212
1313 #include "angband.h"
14+#include "load.h"
1415 #include "util.h"
1516
1617 #include "artifact.h"
--- a/src/load.c
+++ b/src/load.c
@@ -42,6 +42,8 @@
4242
4343 #include "angband.h"
4444 #include "util.h"
45+#include "load.h"
46+
4547 #include "bldg.h"
4648
4749 #include "dungeon.h"
--- /dev/null
+++ b/src/load.h
@@ -0,0 +1,5 @@
1+#pragma once
2+
3+/* load.c */
4+extern errr rd_savefile_new(void);
5+extern bool load_floor(saved_floor_type *sf_ptr, BIT_FLAGS mode);
--- a/src/save.c
+++ b/src/save.c
@@ -14,6 +14,7 @@
1414 #include "angband.h"
1515 #include "util.h"
1616 #include "save.h"
17+#include "load.h"
1718
1819 #include "artifact.h"
1920 #include "sort.h"
Show on old repository browser