Lines Matching refs:ret
287 int ret; in inf() local
296 ret = inflateInit2(&strm, win); in inf()
297 if (ret != Z_OK) { in inf()
309 ret = inflateGetHeader(&strm, &head); assert(ret == Z_OK); in inf()
320 ret = inflate(&strm, Z_NO_FLUSH); assert(err == 9 || ret == err); in inf()
321 if (ret != Z_OK && ret != Z_BUF_ERROR && ret != Z_NEED_DICT) in inf()
323 if (ret == Z_NEED_DICT) { in inf()
324 ret = inflateSetDictionary(&strm, in, 1); in inf()
325 assert(ret == Z_DATA_ERROR); in inf()
327 ret = inflateSetDictionary(&strm, out, 0); in inf()
328 assert(ret == Z_MEM_ERROR); in inf()
331 ret = inflateSetDictionary(&strm, out, 0); in inf()
332 assert(ret == Z_OK); in inf()
333 ret = inflate(&strm, Z_NO_FLUSH); assert(ret == Z_BUF_ERROR); in inf()
335 ret = inflateCopy(©, &strm); assert(ret == Z_OK); in inf()
336 ret = inflateEnd(©); assert(ret == Z_OK); in inf()
344 ret = inflateReset2(&strm, -8); assert(ret == Z_OK); in inf()
345 ret = inflateEnd(&strm); assert(ret == Z_OK); in inf()
352 int ret; in cover_support() local
358 ret = inflateInit(&strm); assert(ret == Z_OK); in cover_support()
360 ret = inflatePrime(&strm, 5, 31); assert(ret == Z_OK); in cover_support()
361 ret = inflatePrime(&strm, -1, 0); assert(ret == Z_OK); in cover_support()
362 ret = inflateSetDictionary(&strm, Z_NULL, 0); in cover_support()
363 assert(ret == Z_STREAM_ERROR); in cover_support()
364 ret = inflateEnd(&strm); assert(ret == Z_OK); in cover_support()
376 ret = inflateInit_(&strm, ZLIB_VERSION - 1, (int)sizeof(z_stream)); in cover_support()
377 assert(ret == Z_VERSION_ERROR); in cover_support()
382 ret = inflateInit(&strm); assert(ret == Z_OK); in cover_support()
383 ret = inflateEnd(&strm); assert(ret == Z_OK); in cover_support()
390 int ret; in cover_wrap() local
394 ret = inflate(Z_NULL, 0); assert(ret == Z_STREAM_ERROR); in cover_wrap()
395 ret = inflateEnd(Z_NULL); assert(ret == Z_STREAM_ERROR); in cover_wrap()
396 ret = inflateCopy(Z_NULL, Z_NULL); assert(ret == Z_STREAM_ERROR); in cover_wrap()
416 ret = inflateInit2(&strm, -8); in cover_wrap()
420 strm.next_out = (void *)&ret; in cover_wrap()
422 ret = inflate(&strm, Z_NO_FLUSH); assert(ret == Z_MEM_ERROR); in cover_wrap()
423 ret = inflate(&strm, Z_NO_FLUSH); assert(ret == Z_MEM_ERROR); in cover_wrap()
426 ret = inflateSetDictionary(&strm, dict, 257); in cover_wrap()
427 assert(ret == Z_OK); in cover_wrap()
429 ret = inflatePrime(&strm, 16, 0); assert(ret == Z_OK); in cover_wrap()
432 ret = inflateSync(&strm); assert(ret == Z_DATA_ERROR); in cover_wrap()
433 ret = inflate(&strm, Z_NO_FLUSH); assert(ret == Z_STREAM_ERROR); in cover_wrap()
436 ret = inflateSync(&strm); assert(ret == Z_OK); in cover_wrap()
438 ret = inflateCopy(©, &strm); assert(ret == Z_MEM_ERROR); in cover_wrap()
440 ret = inflateUndermine(&strm, 1); assert(ret == Z_DATA_ERROR); in cover_wrap()
442 ret = inflateEnd(&strm); assert(ret == Z_OK); in cover_wrap()
472 int ret; in cover_back() local
476 ret = inflateBackInit_(Z_NULL, 0, win, 0, 0); in cover_back()
477 assert(ret == Z_VERSION_ERROR); in cover_back()
478 ret = inflateBackInit(Z_NULL, 0, win); assert(ret == Z_STREAM_ERROR); in cover_back()
479 ret = inflateBack(Z_NULL, Z_NULL, Z_NULL, Z_NULL, Z_NULL); in cover_back()
480 assert(ret == Z_STREAM_ERROR); in cover_back()
481 ret = inflateBackEnd(Z_NULL); assert(ret == Z_STREAM_ERROR); in cover_back()
485 ret = inflateBackInit(&strm, 15, win); assert(ret == Z_OK); in cover_back()
488 ret = inflateBack(&strm, pull, Z_NULL, push, Z_NULL); in cover_back()
489 assert(ret == Z_STREAM_END); in cover_back()
493 ret = inflateBack(&strm, pull, Z_NULL, push, &strm); in cover_back()
494 assert(ret == Z_BUF_ERROR); in cover_back()
496 ret = inflateBack(&strm, pull, &strm, push, Z_NULL); in cover_back()
497 assert(ret == Z_STREAM_ERROR); in cover_back()
498 ret = inflateBackEnd(&strm); assert(ret == Z_OK); in cover_back()
501 ret = inflateBackInit(&strm, 15, win); assert(ret == Z_OK); in cover_back()
502 ret = inflateBackEnd(&strm); assert(ret == Z_OK); in cover_back()
509 int ret; in try() local
534 ret = inflateInit2(&strm, err < 0 ? 47 : -15); in try()
535 assert(ret == Z_OK); in try()
541 ret = inflate(&strm, Z_TREES); in try()
542 assert(ret != Z_STREAM_ERROR && ret != Z_MEM_ERROR); in try()
543 if (ret == Z_DATA_ERROR || ret == Z_NEED_DICT) in try()
547 assert(ret == Z_DATA_ERROR); in try()
558 ret = inflateBackInit(&strm, 15, win); in try()
559 assert(ret == Z_OK); in try()
562 ret = inflateBack(&strm, pull, Z_NULL, push, Z_NULL); in try()
563 assert(ret != Z_STREAM_ERROR); in try()
565 assert(ret == Z_DATA_ERROR); in try()
577 return ret; in try()
619 int ret; in cover_trees() local
631 ret = inflate_table(DISTS, lens, 16, &next, &bits, work); in cover_trees()
632 assert(ret == 1); in cover_trees()
635 ret = inflate_table(DISTS, lens, 16, &next, &bits, work); in cover_trees()
636 assert(ret == 1); in cover_trees()