Lines Matching refs:ret
38 int ret, flush;
48 ret = deflateInit(&strm, level);
49 if (ret != Z_OK)
50 return ret;
67 ret = deflate(&strm, flush); /* no bad return value */
68 assert(ret != Z_STREAM_ERROR); /* state not clobbered */
79 assert(ret == Z_STREAM_END); /* stream will be complete */
94 int ret;
106 ret = inflateInit(&strm);
107 if (ret != Z_OK)
108 return ret;
125 ret = inflate(&strm, Z_NO_FLUSH);
126 assert(ret != Z_STREAM_ERROR); /* state not clobbered */
127 switch (ret) {
129 ret = Z_DATA_ERROR; /* and fall through */
133 return ret;
143 } while (ret != Z_STREAM_END);
147 return ret == Z_STREAM_END ? Z_OK : Z_DATA_ERROR;
151 void zerr(int ret)
154 switch (ret) {
178 int ret;
186 ret = def(stdin, stdout, Z_DEFAULT_COMPRESSION);
187 if (ret != Z_OK)
188 zerr(ret);
189 return ret;
194 ret = inf(stdin, stdout);
195 if (ret != Z_OK)
196 zerr(ret);
197 return ret;