]> git.ipfire.org Git - thirdparty/xz.git/commit
Add LZMA_RET_INTERNAL1..8 to lzma_ret and use one for LZMA_TIMED_OUT.
authorLasse Collin <lasse.collin@tukaani.org>
Mon, 24 Jun 2019 20:25:41 +0000 (23:25 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Mon, 24 Jun 2019 20:25:41 +0000 (23:25 +0300)
commit1b4675cebf7471f7cc9b7072c950e3de97147063
treeb0cf7b11e0fd86051192427ac3390372fda8d318
parent159c43875eb25deea626ed651274464bae3e32ef
Add LZMA_RET_INTERNAL1..8 to lzma_ret and use one for LZMA_TIMED_OUT.

LZMA_TIMED_OUT is *internally* used as a value for lzma_ret
enumeration. Previously it was #defined to 32 and cast to lzma_ret.
That way it wasn't visible in the public API, but this was hackish.

Now the public API has eight LZMA_RET_INTERNALx members and
LZMA_TIMED_OUT is #defined to LZMA_RET_INTERNAL1. This way
the code is cleaner overall although the public API has a few
extra mysterious enum members.
src/liblzma/api/lzma/base.h
src/liblzma/common/common.c
src/liblzma/common/common.h
src/xz/message.c