OSDN Git Service

[Refactor] #39964 Separated autopick-dirty-flags.h from autopick.c
authorHourier <hourier@users.sourceforge.jp>
Fri, 24 Apr 2020 15:08:38 +0000 (00:08 +0900)
committerHourier <hourier@users.sourceforge.jp>
Fri, 24 Apr 2020 15:44:58 +0000 (00:44 +0900)
Hengband_vcs2017/Hengband/Hengband.vcxproj
Hengband_vcs2017/Hengband/Hengband.vcxproj.filters
src/Makefile.am
src/autopick/autopick-dirty-flags.h [new file with mode: 0644]
src/autopick/autopick.c

index 57a07e8..7045a17 100644 (file)
     <ClCompile Include="..\..\src\realm-sorcery.c" />\r
     <ClInclude Include="..\..\src\artifact.h" />\r
     <ClInclude Include="..\..\src\autopick\autopick-commands-table.h" />\r
+    <ClInclude Include="..\..\src\autopick\autopick-dirty-flags.h" />\r
     <ClInclude Include="..\..\src\autopick\autopick-editor-table.h" />\r
     <ClInclude Include="..\..\src\autopick\autopick-flags-table.h" />\r
     <ClInclude Include="..\..\src\autopick\autopick-keys-table.h" />\r
index 74316c6..7e87b69 100644 (file)
     <ClInclude Include="..\..\src\autopick\autopick-commands-table.h">
       <Filter>autopick</Filter>
     </ClInclude>
+    <ClInclude Include="..\..\src\autopick\autopick-dirty-flags.h">
+      <Filter>autopick</Filter>
+    </ClInclude>
   </ItemGroup>
   <ItemGroup>
     <None Include="..\..\src\wall.bmp" />
index 2f69906..abc119a 100644 (file)
@@ -10,8 +10,9 @@ hengband_SOURCES = \
        angband.h\
        \
        autopick/autopick.c autopick/autopick.h \
-       autopick/autopick-commands-table.h autopick/autopick-editor-table.h \
-       autopick/autopick-flags-table.h autopick/autopick-key-table.h \
+       autopick/autopick-commands-table.h autopick/autopick-dirty-flags.h \
+       autopick/autopick-editor-table.h autopick/autopick-flags-table.h \
+       autopick/autopick-key-table.h \
        \
        avatar.h avatar.c birth.c birth.h \
        \
diff --git a/src/autopick/autopick-dirty-flags.h b/src/autopick/autopick-dirty-flags.h
new file mode 100644 (file)
index 0000000..b285e88
--- /dev/null
@@ -0,0 +1,13 @@
+#pragma once
+
+/*
+ * Dirty flag for text editor
+ */
+#define DIRTY_ALL           0x0001
+#define DIRTY_MODE          0x0004
+#define DIRTY_SCREEN        0x0008
+#define DIRTY_NOT_FOUND     0x0010
+#define DIRTY_NO_SEARCH     0x0020
+#define DIRTY_EXPRESSION    0x0040
+#define DIRTY_SKIP_INACTIVE 0x0080
+#define DIRTY_INACTIVE      0x0100
index 3bfa4b8..7db5421 100644 (file)
@@ -14,6 +14,7 @@
 #include "angband.h"
 #include "util.h"
 #include "autopick/autopick-commands-table.h"
+#include "autopick/autopick-dirty-flags.h"
 #include "autopick/autopick-editor-table.h"
 #include "autopick/autopick-flags-table.h"
 #include "autopick/autopick-keys-table.h"
 #define QUIT_WITHOUT_SAVE 1
 #define QUIT_AND_SAVE     2
 
-/*
- * Dirty flag for text editor
- */
-#define DIRTY_ALL           0x0001
-#define DIRTY_MODE          0x0004
-#define DIRTY_SCREEN        0x0008
-#define DIRTY_NOT_FOUND     0x0010
-#define DIRTY_NO_SEARCH     0x0020
-#define DIRTY_EXPRESSION    0x0040
-#define DIRTY_SKIP_INACTIVE 0x0080
-#define DIRTY_INACTIVE      0x0100
-
 #define DESCRIPT_HGT 3
 
 #define MATCH_KEY(KEY) (!strncmp(ptr, KEY, sizeof(KEY)-1)\