summaryrefslogtreecommitdiffstats
path: root/encoder_base.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2019-01-11 05:24:40 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2019-01-11 05:24:58 +0000
commitff926339aad7083a9a96881ee50ec8513f964ce1 (patch)
tree3da58f5fd368c3b4b3ab45e9db852838397b5e58 /encoder_base.h
parentReleasing debian version 1.10-3. (diff)
downloadlzlib-ff926339aad7083a9a96881ee50ec8513f964ce1.tar.xz
lzlib-ff926339aad7083a9a96881ee50ec8513f964ce1.zip
Merging upstream version 1.11.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'encoder_base.h')
-rw-r--r--encoder_base.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/encoder_base.h b/encoder_base.h
index ddba7e6..f0240cc 100644
--- a/encoder_base.h
+++ b/encoder_base.h
@@ -1,5 +1,5 @@
/* Lzlib - Compression library for the lzip format
- Copyright (C) 2009-2018 Antonio Diaz Diaz.
+ Copyright (C) 2009-2019 Antonio Diaz Diaz.
This library is free software. Redistribution and use in source and
binary forms, with or without modification, are permitted provided
@@ -322,7 +322,7 @@ struct Range_encoder
uint32_t range;
unsigned ff_count;
uint8_t cache;
- File_header header;
+ Lzip_header header;
};
static inline void Re_shift_low( struct Range_encoder * const renc )
@@ -349,8 +349,8 @@ static inline void Re_reset( struct Range_encoder * const renc,
renc->range = 0xFFFFFFFFU;
renc->ff_count = 0;
renc->cache = 0;
- Fh_set_dictionary_size( renc->header, dictionary_size );
- for( i = 0; i < Fh_size; ++i )
+ Lh_set_dictionary_size( renc->header, dictionary_size );
+ for( i = 0; i < Lh_size; ++i )
Cb_put_byte( &renc->cb, renc->header[i] );
}
@@ -360,7 +360,7 @@ static inline bool Re_init( struct Range_encoder * const renc,
{
if( !Cb_init( &renc->cb, 65536 + min_free_bytes ) ) return false;
renc->min_free_bytes = min_free_bytes;
- Fh_set_magic( renc->header );
+ Lh_set_magic( renc->header );
Re_reset( renc, dictionary_size );
return true;
}