Lines Matching refs:lzret
70 catch_lzma_error(lzma_ret lzret) in catch_lzma_error() argument
72 switch (lzret) { in catch_lzma_error()
103 PyErr_Format(Error, "Unrecognized error from liblzma: %d", lzret); in catch_lzma_error()
508 lzma_ret lzret; in compress() local
511 lzret = lzma_code(&c->lzs, action); in compress() local
513 if (lzret == LZMA_BUF_ERROR && len == 0 && c->lzs.avail_out > 0) in compress()
514 lzret = LZMA_OK; /* That wasn't a real error */ in compress()
516 if (catch_lzma_error(lzret)) in compress()
519 (action == LZMA_FINISH && lzret == LZMA_STREAM_END)) { in compress()
606 lzma_ret lzret; in Compressor_init_xz() local
609 lzret = lzma_easy_encoder(lzs, preset, check); in Compressor_init_xz()
615 lzret = lzma_stream_encoder(lzs, filters, check); in Compressor_init_xz()
618 if (catch_lzma_error(lzret)) in Compressor_init_xz()
627 lzma_ret lzret; in Compressor_init_alone() local
636 lzret = lzma_alone_encoder(lzs, &options); in Compressor_init_alone()
644 lzret = lzma_alone_encoder(lzs, filters[0].options); in Compressor_init_alone()
649 lzret = LZMA_PROG_ERROR; in Compressor_init_alone()
653 if (PyErr_Occurred() || catch_lzma_error(lzret)) in Compressor_init_alone()
663 lzma_ret lzret; in Compressor_init_raw() local
672 lzret = lzma_raw_encoder(lzs, filters); in Compressor_init_raw()
674 if (catch_lzma_error(lzret)) in Compressor_init_raw()
898 lzma_ret lzret; in decompress_buf() local
901 lzret = lzma_code(lzs, LZMA_RUN); in decompress_buf() local
904 if (catch_lzma_error(lzret)) in decompress_buf()
906 if (lzret == LZMA_GET_CHECK || lzret == LZMA_NO_CHECK) in decompress_buf()
908 if (lzret == LZMA_STREAM_END) { in decompress_buf()
1093 lzma_ret lzret; in Decompressor_init_raw() local
1097 lzret = lzma_raw_decoder(lzs, filters); in Decompressor_init_raw()
1099 if (catch_lzma_error(lzret)) in Decompressor_init_raw()
1137 lzma_ret lzret; in _lzma_LZMADecompressor___init___impl() local
1186 lzret = lzma_auto_decoder(&self->lzs, memlimit_, decoder_flags); in _lzma_LZMADecompressor___init___impl()
1187 if (catch_lzma_error(lzret)) in _lzma_LZMADecompressor___init___impl()
1192 lzret = lzma_stream_decoder(&self->lzs, memlimit_, decoder_flags); in _lzma_LZMADecompressor___init___impl()
1193 if (catch_lzma_error(lzret)) in _lzma_LZMADecompressor___init___impl()
1199 lzret = lzma_alone_decoder(&self->lzs, memlimit_); in _lzma_LZMADecompressor___init___impl()
1200 if (catch_lzma_error(lzret)) in _lzma_LZMADecompressor___init___impl()
1342 lzma_ret lzret; in _lzma__encode_filter_properties_impl() local
1346 lzret = lzma_properties_size(&encoded_size, &filter); in _lzma__encode_filter_properties_impl()
1347 if (catch_lzma_error(lzret)) in _lzma__encode_filter_properties_impl()
1354 lzret = lzma_properties_encode( in _lzma__encode_filter_properties_impl()
1356 if (catch_lzma_error(lzret)) in _lzma__encode_filter_properties_impl()
1384 lzma_ret lzret; in _lzma__decode_filter_properties_impl() local
1388 lzret = lzma_properties_decode( in _lzma__decode_filter_properties_impl()
1390 if (catch_lzma_error(lzret)) in _lzma__decode_filter_properties_impl()