summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tags.h
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2010-04-06 10:45:14 +0200
committerRobert Vollmert <rvollmert@gmx.net>2010-04-06 10:45:14 +0200
commitf40f35fa6b8c31fafd27debaca0e734ef7143733 (patch)
tree191a7ec43050e08c5c401c080e040240621a9e0e /crawl-ref/source/tags.h
parentc591f4c86f012532badd9f5ae10a416e8586207c (diff)
downloadcrawl-ref-f40f35fa6b8c31fafd27debaca0e734ef7143733.tar.gz
crawl-ref-f40f35fa6b8c31fafd27debaca0e734ef7143733.zip
Move TAG_{MINOR,MAJOR}_VERSION definitions to tag-version.h.
Also #include this from enum.h, for the versioned mutation_type changes. This may require updating scripts that determined the versions by parsing tags.h.
Diffstat (limited to 'crawl-ref/source/tags.h')
-rw-r--r--crawl-ref/source/tags.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/crawl-ref/source/tags.h b/crawl-ref/source/tags.h
index 534b01e664..10741c8330 100644
--- a/crawl-ref/source/tags.h
+++ b/crawl-ref/source/tags.h
@@ -10,6 +10,8 @@
#include <cstdio>
#include <stdint.h>
+#include "tag-version.h"
+
struct show_type;
enum tag_type // used during save/load process to identify data blocks
@@ -38,17 +40,6 @@ enum tag_file_type // file types supported by tag system
TAGTYPE_PLAYER_NAME // Used only to read the player name
};
-// Let CDO updaters know if the syntax changes.
-#define TAG_MAJOR_START 5
-#define TAG_MAJOR_VERSION 21
-
-// Minor version will be reset to zero when major version changes.
-enum tag_minor_version
-{
- TAG_MINOR_RESET = 0, // Minor tags were reset
- TAG_MINOR_VERSION = 0 // Current version. (Keep equal to max.)
-};
-
struct enum_info
{
void (*collect)(std::vector<std::pair<int,std::string> >& prs);