Lines Matching refs:lencode
423 struct huffman *lencode,
446 symbol = decode(s, lencode);
521 static struct huffman lencode, distcode;
537 construct(&lencode, lengths, FIXLCODES);
544 /* construct lencode and distcode */
545 lencode.count = lencnt;
546 lencode.symbol = lensym;
555 return codes(s, &lencode, &distcode);
651 short lencnt[MAXBITS+1], lensym[MAXLCODES]; /* lencode memory */
653 struct huffman lencode, distcode; /* length and distance codes */
657 /* construct lencode and distcode */
658 lencode.count = lencnt;
659 lencode.symbol = lensym;
676 /* build huffman table for code lengths codes (use lencode temporarily) */
677 err = construct(&lencode, lengths, 19);
686 symbol = decode(s, &lencode);
712 err = construct(&lencode, lengths, nlen);
713 if (err < 0 || (err > 0 && nlen - lencode.count[0] != 1))
722 return codes(s, &lencode, &distcode);