From d67c39dbc6b6a3dccefd029df017cf813c834408 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 25 Feb 2004 19:44:32 +0000 Subject: [PATCH] Removed hopefully all implicit dependencies on file type numbering. Also, CONFIG_LANG without CONFIG_FILETYPE works if you define your own CA_GET_FILE_LANG macro. --- lib/index.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/index.h b/lib/index.h index eb5fcdb7..bab49b95 100644 --- a/lib/index.h +++ b/lib/index.h @@ -100,6 +100,7 @@ enum card_flag { #define CA_GET_FILE_LANG(a) ((a)->type_flags & 0x80 ? 0 : CA_GET_FILE_INFO(a)) #define FILETYPE_ATTRS SMALL_SET_ATTR(ftype, FILETYPE, CA_GET_FILE_TYPE, ext_ft_parse) #define MAX_FILE_TYPES 8 +#define FILETYPE_IS_TEXT(f) ((f) < 4) byte *ext_ft_parse(u32 *dest, byte *value, uns intval); extern byte *custom_file_type_names[MAX_FILE_TYPES]; #else -- 2.39.5