Lines Matching refs:ret
75 int ret, flush;
86 ret = deflate(def, flush);
87 assert(ret != Z_STREAM_ERROR);
89 return ret;
98 int ret, flush;
106 ret = inflate(inf, Z_NO_FLUSH);
107 assert(ret != Z_STREAM_ERROR && ret != Z_DATA_ERROR &&
108 ret != Z_NEED_DICT);
109 if (ret == Z_MEM_ERROR)
110 return ret;
117 ret = deflate(def, flush);
118 assert(ret != Z_STREAM_ERROR);
119 } while (ret != Z_STREAM_END && def->avail_out != 0);
120 return ret;
129 int ret; /* return code */
139 ret = strtol(argv[1], argv + 1, 10);
142 if (ret < 8) /* 8 is minimum zlib stream size */
144 size = (unsigned)ret;
151 ret = deflateInit(&def, Z_DEFAULT_COMPRESSION);
152 if (ret != Z_OK || blk == NULL)
158 ret = partcompress(stdin, &def);
159 if (ret == Z_ERRNO)
163 if (ret == Z_STREAM_END && def.avail_out >= EXCESS) {
170 ret = deflateEnd(&def);
171 assert(ret != Z_STREAM_ERROR);
185 ret = inflateInit(&inf);
187 if (ret != Z_OK || tmp == NULL)
189 ret = deflateReset(&def);
190 assert(ret != Z_STREAM_ERROR);
197 ret = recompress(&inf, &def);
198 if (ret == Z_MEM_ERROR)
202 ret = inflateReset(&inf);
203 assert(ret != Z_STREAM_ERROR);
204 ret = deflateReset(&def);
205 assert(ret != Z_STREAM_ERROR);
212 ret = recompress(&inf, &def);
213 if (ret == Z_MEM_ERROR)
215 assert(ret == Z_STREAM_END); /* otherwise MARGIN too small */
224 ret = inflateEnd(&inf);
225 assert(ret != Z_STREAM_ERROR);
226 ret = deflateEnd(&def);
227 assert(ret != Z_STREAM_ERROR);