summaryrefslogtreecommitdiffstats
path: root/lzip.h
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 10:02:52 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 10:02:52 +0000
commit3fb246ff84982a43c4323c60ae7c259d37d286f0 (patch)
tree7475aa7c12dc146cfb24a24914a47a1c40ff2a21 /lzip.h
parentAdding upstream version 1.15. (diff)
downloadlzip-3fb246ff84982a43c4323c60ae7c259d37d286f0.tar.xz
lzip-3fb246ff84982a43c4323c60ae7c259d37d286f0.zip
Adding upstream version 1.16~pre1.upstream/1.16_pre1
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'lzip.h')
-rw-r--r--lzip.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/lzip.h b/lzip.h
index b4b51e2..348a000 100644
--- a/lzip.h
+++ b/lzip.h
@@ -1,5 +1,6 @@
/* Lzip - LZMA lossless data compressor
- Copyright (C) 2008, 2009, 2010, 2011, 2012, 2013 Antonio Diaz Diaz.
+ Copyright (C) 2008, 2009, 2010, 2011, 2012, 2013, 2014
+ 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
@@ -40,7 +41,7 @@ public:
enum {
min_dictionary_bits = 12,
- min_dictionary_size = 1 << min_dictionary_bits,
+ min_dictionary_size = 1 << min_dictionary_bits, // >= modeled_distances
max_dictionary_bits = 29,
max_dictionary_size = 1 << max_dictionary_bits,
literal_context_bits = 3,
@@ -240,9 +241,7 @@ struct File_trailer
}
void data_size( unsigned long long sz )
- {
- for( int i = 4; i <= 11; ++i ) { data[i] = (uint8_t)sz; sz >>= 8; }
- }
+ { for( int i = 4; i <= 11; ++i ) { data[i] = (uint8_t)sz; sz >>= 8; } }
unsigned long long member_size() const
{
@@ -252,9 +251,7 @@ struct File_trailer
}
void member_size( unsigned long long sz )
- {
- for( int i = 12; i <= 19; ++i ) { data[i] = (uint8_t)sz; sz >>= 8; }
- }
+ { for( int i = 12; i <= 19; ++i ) { data[i] = (uint8_t)sz; sz >>= 8; } }
};
@@ -278,4 +275,4 @@ class Matchfinder_base;
void show_progress( const unsigned long long partial_size = 0,
const Matchfinder_base * const m = 0,
const Pretty_print * const p = 0,
- const struct stat * const in_statsp = 0 );
+ const unsigned long long cfile_size = 0 );