]> mj.ucw.cz Git - libucw.git/commitdiff
Finally I decided to change the syntax of INDEX_VERSION to better distinguish
authorMartin Mares <mj@ucw.cz>
Sun, 14 Nov 2004 11:54:27 +0000 (11:54 +0000)
committerMartin Mares <mj@ucw.cz>
Sun, 14 Nov 2004 11:54:27 +0000 (11:54 +0000)
between different customizations.

lib/index.h

index b1796c2ae0c692f6936590caaebb5272808d8d8a..6f059eee1a98a53259a119e35cbabe0cc55c5be9 100644 (file)
 
 /*
  *  Magic number which should help to avoid mixing incompatible indices.
- *  Syntax: <magic-byte><version><revision><custom-dependent-part>
+ *  Syntax: <version><revision><custom-type><custom-version>
  *  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)
+#define INDEX_VERSION (0x34010000|((CUSTOM_INDEX_TYPE)<< 8)|(CUSTOM_INDEX_VERSION))
 
 /*
  *  Words