diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2008-03-22 00:57:33 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2008-03-22 00:57:33 +0200 |
commit | 63b74d000eedaebb8485f623e56864ff5ab71064 (patch) | |
tree | 6cdee417634eabd515282882783eeda0322178e4 /src/liblzma/lzma/lzma_encoder_private.h | |
parent | Fix data corruption in LZMA encoder. Note that this bug was (diff) | |
download | xz-63b74d000eedaebb8485f623e56864ff5ab71064.tar.xz |
Demystified the "state" variable in LZMA code. Use the
word literal instead of char for better consistency.
There are still some names with _char instead of _literal
in lzma_optimum, these may be changed later.
Renamed length coder variables.
This commit doesn't change the program logic.
Diffstat (limited to 'src/liblzma/lzma/lzma_encoder_private.h')
-rw-r--r-- | src/liblzma/lzma/lzma_encoder_private.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/liblzma/lzma/lzma_encoder_private.h b/src/liblzma/lzma/lzma_encoder_private.h index e403577c..0feaf26a 100644 --- a/src/liblzma/lzma/lzma_encoder_private.h +++ b/src/liblzma/lzma/lzma_encoder_private.h @@ -60,7 +60,7 @@ typedef struct { typedef struct { - uint32_t state; + lzma_lzma_state state; bool prev_1_is_char; bool prev_2; @@ -88,7 +88,7 @@ struct lzma_coder_s { lzma_range_encoder rc; // State - uint32_t state; + lzma_lzma_state state; uint8_t previous_byte; uint32_t rep_distances[REP_DISTANCES]; @@ -117,8 +117,8 @@ struct lzma_coder_s { probability pos_align_encoder[1 << ALIGN_BITS]; // Length encoders - lzma_length_encoder len_encoder; - lzma_length_encoder rep_match_len_encoder; + lzma_length_encoder match_len_encoder; + lzma_length_encoder rep_len_encoder; // Optimal lzma_optimal optimum[OPTS]; |