From d3d9a99028691e6212bdd6adc21db9c906071acd Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 14 Nov 2004 11:45:15 +0000 Subject: [PATCH] Corrected INDEX_VERSION, documented the rules and added CUSTOM_INDEX_VERSION. --- lib/index.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/index.h b/lib/index.h index 7e91ced4..b1796c2a 100644 --- a/lib/index.h +++ b/lib/index.h @@ -9,7 +9,17 @@ #include "custom/lib/custom.h" -#define INDEX_VERSION (0x34010000+sizeof(struct card_attr)) /* Increase with each incompatible change in index format */ +/* + * Magic number which should help to avoid mixing incompatible indices. + * Syntax: + * Remember to increase with each change of index format. + */ + +#ifndef CUSTOM_INDEX_VERSION +#define CUSTOM_INDEX_VERSION sizeof(struct card_attr) +#endif + +#define INDEX_VERSION (0x32340100+CUSTOM_INDEX_VERSION) /* * Words -- 2.39.2