]> mj.ucw.cz Git - libucw.git/commitdiff
Removed hopefully all implicit dependencies on file type numbering.
authorMartin Mares <mj@ucw.cz>
Wed, 25 Feb 2004 19:44:32 +0000 (19:44 +0000)
committerMartin Mares <mj@ucw.cz>
Wed, 25 Feb 2004 19:44:32 +0000 (19:44 +0000)
Also, CONFIG_LANG without CONFIG_FILETYPE works if you define your
own CA_GET_FILE_LANG macro.

lib/index.h

index eb5fcdb7411c32ff7f869a37a70413aafdd62549..bab49b952dcaca54ecbcb43058eecfb494f91e09 100644 (file)
@@ -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