Lines Matching refs:c

23   inflate_codes_statef *c;  local
25 c = &WS(z)->working_state;
27 c->mode = START;
28 c->lbits = (Byte)bl;
29 c->dbits = (Byte)bd;
30 c->ltree = tl;
31 c->dtree = td;
33 return c;
52 inflate_codes_statef *c = s->sub.decode.codes; /* codes state */ local
58 while (1) switch (c->mode)
65 r = zlib_inflate_fast(c->lbits, c->dbits, c->ltree, c->dtree, s, z);
69 c->mode = r == Z_STREAM_END ? WASH : BADCODE;
74 c->sub.code.need = c->lbits;
75 c->sub.code.tree = c->ltree;
76 c->mode = LEN;
78 j = c->sub.code.need;
80 t = c->sub.code.tree + ((uInt)b & zlib_inflate_mask[j]);
85 c->sub.lit = t->base;
86 c->mode = LIT;
91 c->sub.copy.get = e & 15;
92 c->len = t->base;
93 c->mode = LENEXT;
98 c->sub.code.need = e;
99 c->sub.code.tree = t + t->base;
104 c->mode = WASH;
107 c->mode = BADCODE; /* invalid code */
112 j = c->sub.copy.get;
114 c->len += (uInt)b & zlib_inflate_mask[j];
116 c->sub.code.need = c->dbits;
117 c->sub.code.tree = c->dtree;
118 c->mode = DIST;
120 j = c->sub.code.need;
122 t = c->sub.code.tree + ((uInt)b & zlib_inflate_mask[j]);
127 c->sub.copy.get = e & 15;
128 c->sub.copy.dist = t->base;
129 c->mode = DISTEXT;
134 c->sub.code.need = e;
135 c->sub.code.tree = t + t->base;
138 c->mode = BADCODE; /* invalid code */
143 j = c->sub.copy.get;
145 c->sub.copy.dist += (uInt)b & zlib_inflate_mask[j];
147 c->mode = COPY;
150 f = (uInt)(q - s->window) < c->sub.copy.dist ?
151 s->end - (c->sub.copy.dist - (q - s->window)) :
152 q - c->sub.copy.dist;
154 f = q - c->sub.copy.dist;
155 if ((uInt)(q - s->window) < c->sub.copy.dist)
156 f = s->end - (c->sub.copy.dist - (uInt)(q - s->window));
158 while (c->len)
164 c->len--;
166 c->mode = START;
170 OUTBYTE(c->sub.lit)
171 c->mode = START;
183 c->mode = END;
200 void zlib_inflate_codes_free(c, z) in zlib_inflate_codes_free() argument
201 inflate_codes_statef *c; in zlib_inflate_codes_free()