OSDN Git Service

[Refactor] #37353 PARSE_ERROR_* 定義を dungeon.h へ移動.
authordeskull <deskull@users.sourceforge.jp>
Mon, 20 May 2019 15:16:23 +0000 (00:16 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Mon, 20 May 2019 15:16:52 +0000 (00:16 +0900)
src/defines.h
src/dungeon-file.h

index 38a511c..179c4b3 100644 (file)
@@ -2576,21 +2576,6 @@ extern int PlayerUID;
  */
 #define TOKENIZE_CHECKQUOTE 0x01  /* Special handling of single quotes */
 
-/*
- * Parse errors
- */
-#define PARSE_ERROR_GENERIC                  1
-#define PARSE_ERROR_ABSOLETE_FILE            2
-#define PARSE_ERROR_MISSING_RECORD_HEADER    3
-#define PARSE_ERROR_NON_SEQUENTIAL_RECORDS   4
-#define PARSE_ERROR_INVALID_FLAG             5
-#define PARSE_ERROR_UNDEFINED_DIRECTIVE      6
-#define PARSE_ERROR_OUT_OF_MEMORY            7
-#define PARSE_ERROR_OUT_OF_BOUNDS            8
-#define PARSE_ERROR_TOO_FEW_ARGUMENTS        9
-#define PARSE_ERROR_UNDEFINED_TERRAIN_TAG   10
-#define PARSE_ERROR_MAX                     11
-
 #define GINOU_MAX      10
 
 #define NO_TOWN 6
index b920b13..4e25817 100644 (file)
@@ -24,6 +24,21 @@ struct dungeon_grid
 #define RANDOM_ARTIFACT     0x00000010
 #define RANDOM_TRAP         0x00000020
 
+/*
+ * Parse errors
+ */
+#define PARSE_ERROR_GENERIC                  1
+#define PARSE_ERROR_ABSOLETE_FILE            2
+#define PARSE_ERROR_MISSING_RECORD_HEADER    3
+#define PARSE_ERROR_NON_SEQUENTIAL_RECORDS   4
+#define PARSE_ERROR_INVALID_FLAG             5
+#define PARSE_ERROR_UNDEFINED_DIRECTIVE      6
+#define PARSE_ERROR_OUT_OF_MEMORY            7
+#define PARSE_ERROR_OUT_OF_BOUNDS            8
+#define PARSE_ERROR_TOO_FEW_ARGUMENTS        9
+#define PARSE_ERROR_UNDEFINED_TERRAIN_TAG   10
+#define PARSE_ERROR_MAX                     11
+
 extern concptr err_str[PARSE_ERROR_MAX];
 extern errr process_dungeon_file(concptr name, int ymin, int xmin, int ymax, int xmax);
 extern errr init_v_info(void);