cover remaining lines in inftrees.c */
| 615 | |
| 616 | /* cover remaining lines in inftrees.c */ |
| 617 | local void cover_trees(void) |
| 618 | { |
| 619 | int ret; |
| 620 | unsigned bits; |
| 621 | unsigned short lens[16], work[16]; |
| 622 | code *next, table[ENOUGH_DISTS]; |
| 623 | |
| 624 | /* we need to call inflate_table() directly in order to manifest not- |
| 625 | enough errors, since zlib insures that enough is always enough */ |
| 626 | for (bits = 0; bits < 15; bits++) |
| 627 | lens[bits] = (unsigned short)(bits + 1); |
| 628 | lens[15] = 15; |
| 629 | next = table; |
| 630 | bits = 15; |
| 631 | ret = inflate_table(DISTS, lens, 16, &next, &bits, work); |
| 632 | assert(ret == 1); |
| 633 | next = table; |
| 634 | bits = 1; |
| 635 | ret = inflate_table(DISTS, lens, 16, &next, &bits, work); |
| 636 | assert(ret == 1); |
| 637 | fputs("inflate_table not enough errors\n", stderr); |
| 638 | } |
| 639 | |
| 640 | /* cover remaining inffast.c decoding and window copying */ |
| 641 | local void cover_fast(void) |