Home | History | Annotate | Download | only in infback9

Lines Matching refs:state

25     struct inflate_state FAR *state;
38 state = (struct inflate_state FAR *)ZALLOC(strm, 1,
40 if (state == Z_NULL) return Z_MEM_ERROR;
42 strm->state = (voidpf)state;
43 state->window = window;
58 struct inflate_state state;
63 while (sym < 144) state.lens[sym++] = 8;
64 while (sym < 256) state.lens[sym++] = 9;
65 while (sym < 280) state.lens[sym++] = 7;
66 while (sym < 288) state.lens[sym++] = 8;
70 inflate_table9(LENS, state.lens, 288, &(next), &(bits), state.work);
74 while (sym < 32) state.lens[sym++] = 5;
77 inflate_table9(DISTS, state.lens, 32, &(next), &(bits), state.work);
213 error, or Z_MEM_ERROR if it could not allocate memory for the state.
215 are not correct, i.e. strm is Z_NULL or the state was not initialized.
224 struct inflate_state FAR *state;
252 /* Check that the strm exists and that the state was initialized */
253 if (strm == Z_NULL || strm->state == Z_NULL)
255 state = (struct inflate_state FAR *)strm->state;
257 /* Reset the state */
262 window = state->window;
347 state->nlen = BITS(5) + 257;
349 state->ndist = BITS(5) + 1;
351 state->ncode = BITS(4) + 4;
353 if (state->nlen > 286) {
361 state->have = 0;
362 while (state->have < state->ncode) {
364 state->lens[order[state->have++]] = (unsigned short)BITS(3);
367 while (state->have < 19)
368 state->lens[order[state->have++]] = 0;
369 state->next = state->codes;
370 lencode = (code const FAR *)(state->next);
372 ret = inflate_table9(CODES, state->lens, 19, &(state->next),
373 &(lenbits), state->work);
382 state->have = 0;
383 while (state->have < state->nlen + state->ndist) {
392 state->lens[state->have++] = here.val;
398 if (state->have == 0) {
403 len = (unsigned)(state->lens[state->have - 1]);
421 if (state->have + copy > state->nlen + state->ndist) {
427 state->lens[state->have++] = (unsigned short)len;
435 if (state->lens[256] == 0) {
444 state->next = state->codes;
445 lencode = (code const FAR *)(state->next);
447 ret = inflate_table9(LENS, state->lens, state->nlen,
448 &(state->next), &(lenbits), state->work);
454 distcode = (code const FAR *)(state
456 ret = inflate_table9(DISTS, state->lens + state->nlen,
457 state->ndist, &(state->next), &(distbits),
458 state->work);
609 if (strm == Z_NULL || strm->state == Z_NULL || strm->zfree == (free_func)0)
611 ZFREE(strm, strm->state);
612 strm->state = Z_NULL;