diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-06 12:52:43 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-06 12:52:43 +0000 |
commit | 73f5ce5a1a7ef15a0e889bf2416e401db59f8c28 (patch) | |
tree | 7bf509a1fbb746c7c77b3a7dce30d192729be136 /decoder.h | |
parent | Adding debian version 1.7~pre1-1. (diff) | |
download | clzip-73f5ce5a1a7ef15a0e889bf2416e401db59f8c28.tar.xz clzip-73f5ce5a1a7ef15a0e889bf2416e401db59f8c28.zip |
Merging upstream version 1.7~rc1.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'decoder.h')
-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; |