Lines Matching defs:distcode
438 const struct huffman *distcode)
480 symbol = decode(s, distcode);
541 static struct huffman lencode, distcode;
548 /* construct lencode and distcode */
551 distcode.count = distcnt;
552 distcode.symbol = distsym;
568 construct(&distcode, lengths, MAXDCODES);
575 return codes(s, &lencode, &distcode);
672 short distcnt[MAXBITS+1], distsym[MAXDCODES]; /* distcode memory */
673 struct huffman lencode, distcode; /* length and distance codes */
677 /* construct lencode and distcode */
680 distcode.count = distcnt;
681 distcode.symbol = distsym;
741 err = construct(&distcode, lengths + nlen, ndist);
742 if (err && (err < 0 || ndist != distcode.count[0] + distcode.count[1]))
746 return codes(s, &lencode, &distcode);