From: Martin Mares Date: Wed, 25 Feb 2004 19:44:32 +0000 (+0000) Subject: Removed hopefully all implicit dependencies on file type numbering. X-Git-Tag: holmes-import~1111 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=d67c39dbc6b6a3dccefd029df017cf813c834408;p=libucw.git 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. --- 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