diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-06 12:52:24 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-06 12:52:24 +0000 |
commit | f3418da4287ccac0e1139dacde5669aa091fadb1 (patch) | |
tree | 0a24633209a77b4bbe7ceb1f2c582f69aaaca102 /decoder.h | |
parent | Adding upstream version 1.7~pre1. (diff) | |
download | clzip-f3418da4287ccac0e1139dacde5669aa091fadb1.tar.xz clzip-f3418da4287ccac0e1139dacde5669aa091fadb1.zip |
Adding upstream version 1.7~rc1.upstream/1.7_rc1
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to '')
-rw-r--r-- | decoder.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -256,14 +256,14 @@ struct LZ_decoder void LZd_flush_data( struct LZ_decoder * const d ); -static inline uint8_t LZd_get_prev_byte( const struct LZ_decoder * const d ) +static inline uint8_t LZd_peek_prev( const struct LZ_decoder * const d ) { const int i = ( ( d->pos > 0 ) ? d->pos : d->buffer_size ) - 1; return d->buffer[i]; } -static inline uint8_t LZd_get_byte( const struct LZ_decoder * const d, - const int distance ) +static inline uint8_t LZd_peek( const struct LZ_decoder * const d, + const int distance ) { int i = d->pos - distance - 1; if( i < 0 ) i += d->buffer_size; |