2893N/APatch status:
inffast.c part: submitted back to community without feedback
2893N/APatch status:
deflate.c part: Solaris-specific; not suitable for upstream
2893N/A-#define ZLIB_VERSION "1.2.8"
2893N/A+#define ZLIB_VERSION "1.2.8-T4mods"
2893N/A #define ZLIB_VER_REVISION 8
881N/A code const FAR *dcode; /* local strm->distcode */
881N/A unsigned lmask; /* mask for first level of length codes */
881N/A unsigned dmask; /* mask for first level of distance codes */
2893N/A- code here; /* retrieved table entry */
2893N/A+ code *here; /* retrieved table entry */
881N/A unsigned op; /* code bits, operation, extra bits, or */
881N/A /* window position, window bytes to copy */
881N/A unsigned len; /* match length, unused bytes */
881N/A hold += (unsigned long)(PUP(in)) << bits;
2893N/A- here = lcode[hold & lmask];
2893N/A+ here = (code *)(&(lcode[hold & lmask]));
2893N/A+ op = (unsigned)(here->bits);
2893N/A+ op = (unsigned)(here->op);
881N/A if (op == 0) { /* literal */
2893N/A+ Tracevv((stderr, here->val >= 0x20 && here->val < 0x7f ?
881N/A "inflate: literal '%c'\n" :
2893N/A+ "inflate: literal 0x%02x\n", here->val));
2893N/A+ PUP(out) = (unsigned char)(here->val);
881N/A else if (op & 16) { /* length base */
2893N/A+ len = (unsigned)(here->val);
881N/A op &= 15; /* number of extra bits */
881N/A hold += (unsigned long)(PUP(in)) << bits;
2893N/A- here = dcode[hold & dmask];
2893N/A+ here = (code *)(&(dcode[hold & dmask]));
2893N/A+ op = (unsigned)(here->bits);
2893N/A+ op = (unsigned)(here->op);
881N/A if (op & 16) { /* distance base */
2893N/A+ dist = (unsigned)(here->val);
881N/A op &= 15; /* number of extra bits */
881N/A hold += (unsigned long)(PUP(in)) << bits;
881N/A else if ((op & 64) == 0) { /* 2nd level distance code */
2893N/A+ here = (code *)(&(dcode[here->val + (hold & ((1U << op) - 1))]));
881N/A else if ((op & 64) == 0) { /* 2nd level length code */
2893N/A+ here = (code *)(&(lcode[here->val + (hold & ((1U << op) - 1))]));
881N/A else if (op & 32) { /* end-of-block */
2893N/A copyright string in the executable of your product.
2893N/A /* ===========================================================================
881N/A void match_init OF((void)); /* asm code initialization */
881N/A uInt longest_match OF((deflate_state *s, IPos cur_match));
881N/A+#ifdef ORIG_LONGEST_MATCH
881N/A local uInt longest_match OF((deflate_state *s, IPos cur_match));
881N/A+uInt longest_match OF((deflate_state *s, IPos cur_match));
2893N/A local void check_match OF((deflate_state *s, IPos start, IPos match,
2893N/A+#endif /* ! LONGEST_MATCH_ONLY */
2893N/A /* ===========================================================================
2893N/A+#endif /* ! LONGEST_MATCH_ONLY */
881N/A+#if defined(ORIG_LONGEST_MATCH) || defined(ORIG_LONGEST_MATCH_GLOBAL)
881N/A /* ===========================================================================
881N/A * Set match_start to the longest match starting at the given string and
881N/A /* For 80x86 and 680x0, an optimized version will be provided in
match.asm or
881N/A+#ifdef ORIG_LONGEST_MATCH_GLOBAL
881N/A+uInt longest_match(s, cur_match)
881N/A local uInt longest_match(s, cur_match)
881N/A IPos cur_match; /* current match */
881N/A+#endif /* ORIG_LONGEST_MATCHT */
2893N/A /* ===========================================================================
2893N/A * Check that the match at match_start is indeed a match.
2893N/A+#endif /* ! LONGEST_MATCH_ONLY */