From 55c100a5accca712671adcd10e81db6c1a20b8d4 Mon Sep 17 00:00:00 2001 From: Tomas Holusa Date: Fri, 5 Nov 2004 15:07:26 +0000 Subject: [PATCH] Split type_flags to 4/4 bits for FILETYPE and LANG --- lib/index.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/index.h b/lib/index.h index 34eaf7ce..7e91ced4 100644 --- a/lib/index.h +++ b/lib/index.h @@ -9,7 +9,7 @@ #include "custom/lib/custom.h" -#define INDEX_VERSION (0x32330100+sizeof(struct card_attr)) /* Increase with each incompatible change in index format */ +#define INDEX_VERSION (0x34010000+sizeof(struct card_attr)) /* Increase with each incompatible change in index format */ /* * Words @@ -96,11 +96,11 @@ enum card_flag { */ #ifdef CONFIG_FILETYPE -#define CA_GET_FILE_TYPE(a) ((a)->type_flags >> 5) -#define CA_GET_FILE_INFO(a) ((a)->type_flags & 0x1f) +#define CA_GET_FILE_TYPE(a) ((a)->type_flags >> 4) +#define CA_GET_FILE_INFO(a) ((a)->type_flags & 0x0f) #define CA_GET_FILE_LANG(a) ((a)->type_flags & 0x80 ? 0 : CA_GET_FILE_INFO(a)) -#define MAX_FILE_TYPES 8 -#define FILETYPE_IS_TEXT(f) ((f) < 4) +#define MAX_FILE_TYPES 16 +#define FILETYPE_IS_TEXT(f) ((f) < 8) byte *ext_ft_parse(u32 *dest, byte *value, uns intval); extern byte *custom_file_type_names[MAX_FILE_TYPES]; #define FILETYPE_STAT_VARS uns matching_per_type[MAX_FILE_TYPES]; -- 2.39.2