Lhaz
lha_macro.h
[詳解]
1 /* ------------------------------------------------------------------------ */
2 /* LHa for UNIX Archiver Driver macro define */
3 /* */
4 /* Modified Nobutaka Watazaki */
5 /* */
6 /* Ver. 1.14 Soruce All chagned 1995.01.14 N.Watazaki */
7 /* ------------------------------------------------------------------------ */
8 #ifndef _LHA_MACRO_H
9 #define _LHA_MACRO_H
10 
11 enum {
16 };
17 #define is_directory(statp) (((statp)->st_mode & S_IFMT) == S_IFDIR)
18 
19 #define NC (UCHAR_MAX + MAXMATCH + 2 - THRESHOLD)
20 #define MAX_DICBIT 16 /* lh7 use 16bits */
21 #define MAXMATCH 256 /* formerly F (not more than UCHAR_MAX + 1) */
22 #define THRESHOLD 3 /* choose optimal value */
23 
24 /* from huf.c */
25 /* alphabet = {0, 1, 2, ..., NC - 1} */
26 #define CBIT 9 /* $¥lfloor ¥log_2 NC ¥rfloor + 1$ */
27 #endif
Definition: lha_macro.h:13
Definition: lha_macro.h:14
Definition: lha_macro.h:12
Definition: lha_macro.h:15