diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 13:36:22 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 13:36:22 +0000 |
commit | 01298f3142627495db94d24bdb314052b12ed110 (patch) | |
tree | ded298850a7794d445cc5b4f32d665ba558422d7 /main.cc | |
parent | Adding debian version 0.5-3. (diff) | |
download | lzlib-01298f3142627495db94d24bdb314052b12ed110.tar.xz lzlib-01298f3142627495db94d24bdb314052b12ed110.zip |
Merging upstream version 0.6.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'main.cc')
-rw-r--r-- | main.cc | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -26,6 +26,7 @@ #include <algorithm> #include <cerrno> #include <climits> +#include <csignal> #include <cstdio> #include <cstdlib> #include <cstring> @@ -33,7 +34,6 @@ #include <vector> #include <fcntl.h> #include <stdint.h> -#include <signal.h> #include <unistd.h> #include <utime.h> #include <sys/stat.h> @@ -462,6 +462,8 @@ int compress( const long long member_size, const long long volume_size, if( in_size == 0 ) LZ_compress_finish( encoder ); else if( in_size != LZ_compress_write( encoder, in_buffer, in_size ) ) internal_error( "library error" ); +// for( int i = 0; i < 10000; ++i ) +// LZ_compress_sync_flush( encoder ); } int out_size = LZ_compress_read( encoder, out_buffer, out_buffer_size ); // std::fprintf( stderr, "%6d in_size, %5d out_size.\n", in_size, out_size ); |