diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2008-09-06 23:42:50 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2008-09-06 23:42:50 +0300 |
commit | 32fe5fa541e82c08e054086279079ae5016bd8d8 (patch) | |
tree | b65ae7db7452b4fe94f4b43a7dd2848b823bf332 /src/liblzma/lz | |
parent | Some API cleanups (diff) | |
download | xz-32fe5fa541e82c08e054086279079ae5016bd8d8.tar.xz |
Comments
Diffstat (limited to 'src/liblzma/lz')
-rw-r--r-- | src/liblzma/lz/lz_encoder.c | 3 | ||||
-rw-r--r-- | src/liblzma/lz/lz_encoder.h | 12 | ||||
-rw-r--r-- | src/liblzma/lz/lz_encoder_mf.c | 2 |
3 files changed, 8 insertions, 9 deletions
diff --git a/src/liblzma/lz/lz_encoder.c b/src/liblzma/lz/lz_encoder.c index 6a39d0f5..067f12c7 100644 --- a/src/liblzma/lz/lz_encoder.c +++ b/src/liblzma/lz/lz_encoder.c @@ -143,8 +143,7 @@ fill_window(lzma_coder *coder, lzma_allocator *allocator, const uint8_t *in, coder->mf.read_pos -= pending; // Call the skip function directly instead of using - // lz_dict_skip(), since we don't want to touch - // mf->read_ahead. + // mf_skip(), since we don't want to touch mf->read_ahead. coder->mf.skip(&coder->mf, pending); } diff --git a/src/liblzma/lz/lz_encoder.h b/src/liblzma/lz/lz_encoder.h index 8442dfa0..373cc01b 100644 --- a/src/liblzma/lz/lz_encoder.h +++ b/src/liblzma/lz/lz_encoder.h @@ -95,12 +95,12 @@ struct lzma_mf_s { ////////////////// /// Find matches. Returns the number of distance-length pairs written - /// to the matches array. This is called only via lzma_mf_find. + /// to the matches array. This is called only via lzma_mf_find(). uint32_t (*find)(lzma_mf *mf, lzma_match *matches); /// Skips num bytes. This is like find() but doesn't make the /// distance-length pairs available, thus being a little faster. - /// This is called only via mf_skip function. + /// This is called only via mf_skip(). void (*skip)(lzma_mf *mf, uint32_t num); uint32_t *hash; @@ -117,7 +117,7 @@ struct lzma_mf_s { /// Maximum length of a match supported by the LZ-based encoder. /// If the longest match found by the match finder is find_len_max, - /// lz_dict_find() tries to expand it up to match_len_max bytes. + /// mf_find() tries to expand it up to match_len_max bytes. uint32_t match_len_max; /// When running out of input, binary tree match finders need to know @@ -177,10 +177,10 @@ typedef struct { // also take longer. // // A single encoder loop in the LZ-based encoder may call the match finder -// (lz_dict_find() or lz_dict_skip()) at maximum of after_size times. -// In other words, a single encoder loop may advance lz_dict.read_pos at +// (mf_find() or mf_skip()) at maximum of after_size times. +// In other words, a single encoder loop may advance lzma_mf.read_pos at // maximum of after_size times. Since matches are looked up to -// lz_dict.buffer[lz_dict.read_pos + match_len_max - 1], the total +// lzma_mf.buffer[lzma_mf.read_pos + match_len_max - 1], the total // amount of extra buffer needed after dictionary_size becomes // after_size + match_len_max. // diff --git a/src/liblzma/lz/lz_encoder_mf.c b/src/liblzma/lz/lz_encoder_mf.c index 208bb2ae..d82681b3 100644 --- a/src/liblzma/lz/lz_encoder_mf.c +++ b/src/liblzma/lz/lz_encoder_mf.c @@ -244,7 +244,7 @@ do { \ /// /// \param len_limit Don't look for matches longer than len_limit. /// \param pos lzma_mf.read_pos + lzma_mf.offset -/// \param cur Pointer to current byte (lzma_dict_ptr(mf)) +/// \param cur Pointer to current byte (mf_ptr(mf)) /// \param cur_match Start position of the current match candidate /// \param loops Maximum length of the hash chain /// \param son lzma_mf.son (contains the hash chain) |