Home | History | Annotate | Download | only in puff

Lines Matching defs:lencode

437                 const struct huffman *lencode,
460 symbol = decode(s, lencode);
541 static struct huffman lencode, distcode;
548 /* construct lencode and distcode */
549 lencode.count = lencnt;
550 lencode.symbol = lensym;
563 construct(&lencode, lengths, FIXLCODES);
575 return codes(s, &lencode, &distcode);
671 short lencnt[MAXBITS+1], lensym[MAXLCODES]; /* lencode memory */
673 struct huffman lencode, distcode; /* length and distance codes */
677 /* construct lencode and distcode */
678 lencode.count = lencnt;
679 lencode.symbol = lensym;
696 /* build huffman table for code lengths codes (use lencode temporarily) */
697 err = construct(&lencode, lengths, 19);
707 symbol = decode(s, &lencode);
736 err = construct(&lencode, lengths, nlen);
737 if (err && (err < 0 || nlen != lencode.count[0] + lencode.count[1]))
746 return codes(s, &lencode, &distcode);