OSDN Git Service

[Refactor] #37353 CHECK_MODIFICATION_TIME のプリプロが有効であることを前提とし、プリプロ自体は削除 / Removed...
authorHourier <hourier@users.sourceforge.jp>
Sun, 26 Jan 2020 13:21:54 +0000 (22:21 +0900)
committerHourier <hourier@users.sourceforge.jp>
Sun, 26 Jan 2020 13:21:54 +0000 (22:21 +0900)
src/h-config.h
src/init.c

index 01af81b..38461fc 100644 (file)
 # define VERIFY_TIMESTAMPS
 #endif
 
-/*
- * Check the modification time of *_info.raw files
- * (by Keldon Jones)
- */
-#define CHECK_MODIFICATION_TIME
-
 #ifndef HAVE_CONFIG_H
 #define WORLD_SCORE
 #endif /* HAVE_CONFIG_H */
index 29e2729..5ed1aa9 100644 (file)
 #include "rooms-vault.h"
 #include "world.h"
 
-#ifdef CHECK_MODIFICATION_TIME
 #include <sys/types.h>
 #include <sys/stat.h>
-#endif /* CHECK_MODIFICATION_TIME */
 
 static void put_title(void);
 
@@ -286,8 +284,6 @@ header d_head; /*!< ダンジョン情報のヘッダ構造体 */
 header s_head; /*!< プレイヤー職業技能情報のヘッダ構造体 */
 header m_head; /*!< プレイヤー職業魔法情報のヘッダ構造体 */
 
-#ifdef CHECK_MODIFICATION_TIME
-
 /*!
  * @brief テキストファイルとrawファイルの更新時刻を比較する
  * Find the default paths to all of our important sub-directories.
@@ -322,7 +318,6 @@ static errr check_modification_date(int fd, concptr template_file)
        return 0;
 }
 
-#endif /* CHECK_MODIFICATION_TIME */
 
 /*** Initialize from binary image files ***/
 
@@ -456,12 +451,8 @@ static errr init_info(concptr filename, header *head, void **info, char **name,
        errr err = 1;
        if (fd >= 0)
        {
-#ifdef CHECK_MODIFICATION_TIME
-
                err = check_modification_date(fd, format("%s.txt", filename));
 
-#endif /* CHECK_MODIFICATION_TIME */
-
                /* Attempt to parse the "raw" file */
                if (!err)
                        err = init_info_raw(fd, head);