123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- #ifndef NO_GZIP
- # define GUNZIP
- #endif
- typedef enum {
- HEAD,
- FLAGS,
- TIME,
- OS,
- EXLEN,
- EXTRA,
- NAME,
- COMMENT,
- HCRC,
- DICTID,
- DICT,
- TYPE,
- TYPEDO,
- STORED,
- COPY_,
- COPY,
- TABLE,
- LENLENS,
- CODELENS,
- LEN_,
- LEN,
- LENEXT,
- DIST,
- DISTEXT,
- MATCH,
- LIT,
- CHECK,
- LENGTH,
- DONE,
- BAD,
- MEM,
- SYNC
- } inflate_mode;
- struct inflate_state {
- inflate_mode mode;
- int last;
- int wrap;
- int havedict;
- int flags;
- unsigned dmax;
- unsigned long check;
- unsigned long total;
- gz_headerp head;
-
- unsigned wbits;
- unsigned wsize;
- unsigned whave;
- unsigned wnext;
- unsigned char FAR *window;
-
- unsigned long hold;
- unsigned bits;
-
- unsigned length;
- unsigned offset;
-
- unsigned extra;
-
- code const FAR *lencode;
- code const FAR *distcode;
- unsigned lenbits;
- unsigned distbits;
-
- unsigned ncode;
- unsigned nlen;
- unsigned ndist;
- unsigned have;
- code FAR *next;
- unsigned short lens[320];
- unsigned short work[288];
- code codes[ENOUGH];
- int sane;
- int back;
- unsigned was;
- };
|