|
|
1.1 ! root 1: #include <stdio.h> ! 2: #include <windows.h> ! 3: ! 4: #define WSIZE 0x8000 // Window size ! 5: #define ZCONST const ! 6: #define OF(p) p ! 7: ! 8: typedef unsigned long ulg; ! 9: typedef unsigned char uch; ! 10: typedef unsigned short ush; ! 11: typedef void zvoid; ! 12: ! 13: typedef struct huft ! 14: { ! 15: uch b, e; ! 16: union ! 17: { ! 18: ush n; ! 19: struct huft *t; ! 20: }v; ! 21: }; ! 22: ! 23: typedef struct ! 24: { ! 25: uch *inptr, *outbufptr; ! 26: int incnt; ! 27: int outCounter; ! 28: ! 29: struct huft *fixed_tl; ! 30: struct huft *fixed_td; ! 31: int fixed_bl, fixed_bd; ! 32: ! 33: unsigned bk, wp; ! 34: ulg bb; ! 35: } G_struct; ! 36: ! 37: #define __GPRO void ! 38: #define __GPRO__ ! 39: #define __G ! 40: #define __G__ ! 41: #define __GDEF ! 42: ! 43: ! 44: #define FLUSH(cnt) { memcpy (G.outbufptr, redirSlide, cnt); G.outbufptr += cnt; G.outCounter += cnt; } ! 45: #define NEXTBYTE (((G.incnt--) >= 0) ? (*G.inptr++) : EOF) ! 46: ! 47: ! 48: int huft_free(struct huft *t); ! 49: int huft_build(__GDEF ZCONST unsigned *b, unsigned n, unsigned s, ZCONST ush *d, ZCONST ush *e, struct huft **t, int *m); ! 50: ! 51: int DecompressDeflatedData (char *out, char *in, int inLength);
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.