43#define PFDI_INT(hfdi) ((PFDI_Int)(hfdi))
45#define PFDI_ALLOC(hfdi, size) ((*PFDI_INT(hfdi)->pfnalloc) (size))
46#define PFDI_FREE(hfdi, ptr) ((*PFDI_INT(hfdi)->pfnfree) (ptr))
49#define ZIPWSIZE 0x8000
77#define CAB(x) (decomp_state->x)
78#define ZIP(x) (decomp_state->methods.zip.x)
80#define DECR_DATAFORMAT (1)
81#define DECR_ILLEGALDATA (2)
82#define DECR_NOMEMORY (3)
83#define DECR_CHECKSUM (4)
85#define DECR_OUTPUT (6)
86#define DECR_USERABORT (7)
88#define ZIPNEEDBITS(n) {while(k<(n)){cab_LONG c=*(ZIP(inpos)++);\
89 b|=((cab_ULONG)c)<<k;k+=8;}}
90#define ZIPDUMPBITS(n) {b>>=(n);k-=(n);}
97#define CAB_BLOCKMAX (32768)
98#define CAB_INPUTMAX (CAB_BLOCKMAX+6144)
111#define THOSE_ZIP_CONSTS \
112static const cab_UBYTE Zipborder[] = \
113{ 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15}; \
114static const cab_UWORD Zipcplens[] = \
115{ 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, \
116 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0}; \
117static const cab_UWORD Zipcplext[] = \
118{ 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, \
119 4, 5, 5, 5, 5, 0, 99, 99}; \
120static const cab_UWORD Zipcpdist[] = \
121{ 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, \
122513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577}; \
123static const cab_UWORD Zipcpdext[] = \
124{ 0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, \
12510, 11, 11, 12, 12, 13, 13}; \
127static const cab_UWORD Zipmask[17] = { \
128 0x0000, 0x0001, 0x0003, 0x0007, 0x000f, 0x001f, 0x003f, 0x007f, 0x00ff, \
129 0x01ff, 0x03ff, 0x07ff, 0x0fff, 0x1fff, 0x3fff, 0x7fff, 0xffff \
struct fdi_cds_fwd fdi_decomp_state
struct FDI_Int * PFDI_Int
UINT(__cdecl * PFNWRITE)(INT_PTR hf, void *pv, UINT cb)
int(__cdecl * PFNCLOSE)(INT_PTR hf)
UINT(__cdecl * PFNREAD)(INT_PTR hf, void *pv, UINT cb)
void(__cdecl * PFNFREE)(void *pv)
void *(__cdecl * PFNALLOC)(ULONG cb)
INT_PTR(__cdecl * PFNOPEN)(char *pszFile, int oflag, int pmode)
LONG(__cdecl * PFNSEEK)(INT_PTR hf, LONG dist, int seektype)
GLint GLint GLint GLint GLint x
unsigned int FDI_Intmagic
struct Ziphuft * u[ZIPBMAX]
union fdi_cds_fwd::@248 methods
cab_UBYTE outbuf[CAB_BLOCKMAX]
cab_UBYTE inbuf[CAB_INPUTMAX+2]