Lines Matching full:zs
139 #define fp zs->zs_fp
140 #define zmode zs->zs_mode
141 #define state zs->zs_state
142 #define n_bits zs->zs_n_bits
143 #define maxbits zs->zs_maxbits
144 #define maxcode zs->zs_maxcode
145 #define maxmaxcode zs->zs_maxmaxcode
146 #define htab zs->zs_htab
147 #define codetab zs->zs_codetab
148 #define hsize zs->zs_hsize
149 #define free_ent zs->zs_free_ent
150 #define block_compress zs->zs_block_compress
151 #define clear_flg zs->zs_clear_flg
152 #define ratio zs->zs_ratio
153 #define checkpoint zs->zs_checkpoint
154 #define offset zs->zs_offset
155 #define in_count zs->zs_in_count
156 #define bytes_out zs->zs_bytes_out
157 #define out_count zs->zs_out_count
158 #define buf zs->zs_buf
159 #define fcode zs->u.w.zs_fcode
160 #define hsize_reg zs->u.w.zs_hsize_reg
161 #define ent zs->u.w.zs_ent
162 #define hshift zs->u.w.zs_hshift
163 #define stackp zs->u.r.zs_stackp
164 #define finchar zs->u.r.zs_finchar
165 #define code zs->u.r.zs_code
166 #define oldcode zs->u.r.zs_oldcode
167 #define incode zs->u.r.zs_incode
168 #define roffset zs->u.r.zs_roffset
169 #define size zs->u.r.zs_size
170 #define gbuf zs->u.r.zs_gbuf
236 struct s_zstate *zs; in zwrite() local
244 zs = cookie; in zwrite()
278 cl_hash(zs, (count_int)hsize_reg); /* Clear hash table. */ in zwrite()
303 nomatch: if (output(zs, (code_int) ent) == -1) in zwrite()
312 if (cl_block(zs) == -1) in zwrite()
322 struct s_zstate *zs; in zclose() local
325 zs = cookie; in zclose()
327 if (output(zs, (code_int) ent) == -1) { in zclose()
329 free(zs); in zclose()
333 if (output(zs, (code_int) - 1) == -1) { in zclose()
335 free(zs); in zclose()
340 free(zs); in zclose()
365 output(struct s_zstate *zs, code_int ocode) in output() argument
456 struct s_zstate *zs; in zread() local
462 zs = cookie; in zread()
498 finchar = oldcode = getcode(zs); in zread()
507 while ((code = getcode(zs)) > -1) { in zread()
572 getcode(struct s_zstate *zs) in getcode() argument
631 cl_block(struct s_zstate *zs) /* Table clear for block compress. */ in cl_block() argument
649 cl_hash(zs, (count_int) hsize); in cl_block()
652 if (output(zs, (code_int) CLEAR) == -1) in cl_block()
659 cl_hash(struct s_zstate *zs, count_int cl_hsize) /* Reset code table. */ in cl_hash() argument
693 struct s_zstate *zs; in zopen() local
701 if ((zs = calloc(1, sizeof(struct s_zstate))) == NULL) in zopen()
723 free(zs); in zopen()
729 return (funopen(zs, zread, NULL, NULL, zclose)); in zopen()
732 return (funopen(zs, NULL, zwrite, NULL, zclose)); in zopen()