From: Martin Mares Date: Sun, 14 Nov 2004 11:45:15 +0000 (+0000) Subject: Corrected INDEX_VERSION, documented the rules and added CUSTOM_INDEX_VERSION. X-Git-Tag: holmes-import~872 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=d3d9a99028691e6212bdd6adc21db9c906071acd;p=libucw.git Corrected INDEX_VERSION, documented the rules and added CUSTOM_INDEX_VERSION. --- 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