summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/files.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2011-04-19 16:14:09 +0200
committerAdam Borowski <kilobyte@angband.pl>2011-04-19 16:14:09 +0200
commitbac4009f04909c08c75bc88cdc650a0fd4030fd5 (patch)
treef4305eff89da4fbcdef2af901faf45f1b65e6043 /crawl-ref/source/files.h
parent9874a1fa20bc58ef979ade23a89fe52016d728b3 (diff)
downloadcrawl-ref-bac4009f04909c08c75bc88cdc650a0fd4030fd5.tar.gz
crawl-ref-bac4009f04909c08c75bc88cdc650a0fd4030fd5.zip
Detect incompletely regenerated databases.
This saves the timestamp in the database instead of relying on the .db file's mtime (which would be newer than source). There are better ways to do this, but I did the simplest one for now, since aborted builds result in very "fun" bugs, and we badly want this fixed for 0.8. Also, there were nice race conditions, multiple rw opens, and so on. The whole database system needs to be rewritten quite badly, it's a mess of layers upon layers, remnants of DBM that was used in the dark past. This is only the db, dsc files suffer from the same problems, and the fix there will be a lot more complex :(
Diffstat (limited to 'crawl-ref/source/files.h')
-rw-r--r--crawl-ref/source/files.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/crawl-ref/source/files.h b/crawl-ref/source/files.h
index fc7e29c5c4..d9c830a67d 100644
--- a/crawl-ref/source/files.h
+++ b/crawl-ref/source/files.h
@@ -89,9 +89,6 @@ std::string change_file_extension(const std::string &file,
void file_touch(const std::string &file);
time_t file_modtime(const std::string &file);
bool is_newer(const std::string &a, const std::string &b);
-void check_newer(const std::string &target,
- const std::string &dependency,
- void (*action)());
std::vector<std::string> get_title_files();