From: Martin Mares Date: Sun, 14 Nov 2004 11:54:27 +0000 (+0000) Subject: Finally I decided to change the syntax of INDEX_VERSION to better distinguish X-Git-Tag: holmes-import~871 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=5a47c24d0b0a55190af1a563753d28752c01cd60;p=libucw.git Finally I decided to change the syntax of INDEX_VERSION to better distinguish between different customizations. --- diff --git a/lib/index.h b/lib/index.h index b1796c2a..6f059eee 100644 --- a/lib/index.h +++ b/lib/index.h @@ -11,15 +11,11 @@ /* * Magic number which should help to avoid mixing incompatible indices. - * Syntax: + * 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) +#define INDEX_VERSION (0x34010000|((CUSTOM_INDEX_TYPE)<< 8)|(CUSTOM_INDEX_VERSION)) /* * Words