From 5a47c24d0b0a55190af1a563753d28752c01cd60 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 14 Nov 2004 11:54:27 +0000 Subject: [PATCH] Finally I decided to change the syntax of INDEX_VERSION to better distinguish between different customizations. --- lib/index.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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 -- 2.39.2