1 #ifndef _RAR_GLOBAL_ 2 #define _RAR_GLOBAL_ 3 4 #ifdef INCLUDEGLOBAL 5 #define EXTVAR 6 #else 7 #define EXTVAR extern 8 #endif 9 10 EXTVAR ErrorHandler ErrHandler; 11 12 #ifdef WITH_ICONV 13 #define OPT_DEFAULT "IGNORE" /* ignore unrepresentable chars */ 14 15 #define ENC_MAXLEN 32 /* encoding name maximum length */ 16 #define OPT_MAXLEN 9 /* strlen("TRANSLIT") */ 17 18 EXTVAR iconv_t h_E2I; /* ExtToInt handler */ 19 EXTVAR iconv_t h_I2E; /* IntToExt handler */ 20 EXTVAR char encInt[ENC_MAXLEN]; /* internal (archive) encoding */ 21 EXTVAR char encExt[ENC_MAXLEN]; /* external (filesystem) encoding */ 22 EXTVAR char encOpt[OPT_MAXLEN]; /* encoding option (ignore/translit) */ 23 #endif 24 25 #endif 26