summaryrefslogtreecommitdiffstats
path: root/decoder.h
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 14:06:44 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 14:06:44 +0000
commit8115a3e25cf2f14818bf58a5285b113efd18e0bb (patch)
tree4e7b98c1a70c26289b3f7db2e460959da3e1eb90 /decoder.h
parentAdding upstream version 1.7~pre1. (diff)
downloadlzlib-8115a3e25cf2f14818bf58a5285b113efd18e0bb.tar.xz
lzlib-8115a3e25cf2f14818bf58a5285b113efd18e0bb.zip
Adding upstream version 1.7~rc1.upstream/1.7_rc1
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'decoder.h')
-rw-r--r--decoder.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/decoder.h b/decoder.h
index f029212..13e06d8 100644
--- a/decoder.h
+++ b/decoder.h
@@ -338,14 +338,14 @@ struct LZ_decoder
static inline bool LZd_enough_free_bytes( const struct LZ_decoder * const d )
{ return Cb_free_bytes( &d->cb ) >= lzd_min_free_bytes; }
-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->cb.put > 0 ) ? d->cb.put : d->cb.buffer_size ) - 1;
return d->cb.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->cb.put - distance - 1;
if( i < 0 ) i += d->cb.buffer_size;