diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2019-01-08 17:20:05 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2019-01-08 17:20:05 +0000 |
commit | 8c5c614b4137a9c6d31d15dab679a9a83260ba4c (patch) | |
tree | 95c123a85cf741387920efd8c885ffb7539a7c2a /encoder_base.h | |
parent | Adding upstream version 1.10. (diff) | |
download | clzip-8c5c614b4137a9c6d31d15dab679a9a83260ba4c.tar.xz clzip-8c5c614b4137a9c6d31d15dab679a9a83260ba4c.zip |
Adding upstream version 1.11.upstream/1.11
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | encoder_base.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/encoder_base.h b/encoder_base.h index c574dcc..0186dc8 100644 --- a/encoder_base.h +++ b/encoder_base.h @@ -1,5 +1,5 @@ /* Clzip - LZMA lossless data compressor - Copyright (C) 2010-2018 Antonio Diaz Diaz. + Copyright (C) 2010-2019 Antonio Diaz Diaz. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -237,7 +237,7 @@ struct Range_encoder unsigned ff_count; int outfd; /* output file descriptor */ uint8_t cache; - File_header header; + Lzip_header header; }; void Re_flush_data( struct Range_encoder * const renc ); @@ -273,8 +273,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 ) Re_put_byte( renc, renc->header[i] ); } @@ -284,7 +284,7 @@ static inline bool Re_init( struct Range_encoder * const renc, renc->buffer = (uint8_t *)malloc( re_buffer_size ); if( !renc->buffer ) return false; renc->outfd = ofd; - Fh_set_magic( renc->header ); + Lh_set_magic( renc->header ); Re_reset( renc, dictionary_size ); return true; } |