]>
git.ipfire.org Git - thirdparty/zlib-ng.git/log
Hans Kristian Rosbach [Tue, 17 Nov 2015 14:45:45 +0000 (15:45 +0100)]
Remove inline and extern from function declaration.
Hans Kristian Rosbach [Wed, 4 Nov 2015 19:58:56 +0000 (20:58 +0100)]
Split insert_string_sse into separate file in arch folder.
Mika Lindqvist [Tue, 3 Nov 2015 21:09:40 +0000 (23:09 +0200)]
Enable deflate_quick under MSVC.
Mika Lindqvist [Wed, 27 May 2015 20:55:35 +0000 (23:55 +0300)]
minigzip: restructure gzread() to get rid of unnecessary temporary variables.
Jim Kukunas [Tue, 3 Nov 2015 19:45:10 +0000 (20:45 +0100)]
Fix for intels zlib fork, fixes their issues #2 and #3
Hans Kristian Rosbach [Tue, 3 Nov 2015 18:35:54 +0000 (19:35 +0100)]
Fix merge errors.
Mark Adler [Sun, 16 Aug 2015 01:14:50 +0000 (18:14 -0700)]
Fix typo.
Mark Adler [Sun, 4 Oct 2015 18:45:00 +0000 (11:45 -0700)]
Use a consistent and more modern approach to not use a parameter.
A remarkably creative and diverse set of approaches to letting the
compiler know that opaque was being used when it wasn't is changed
by this commit to the more standard (void)opaque.
Conflicts:
zutil.c
Mark Adler [Wed, 16 Sep 2015 22:40:00 +0000 (15:40 -0700)]
Use UTF-8 for non-ASCII characters in ChangeLog.
Mark Adler [Sun, 6 Sep 2015 01:56:55 +0000 (18:56 -0700)]
Clean up portability for shifts and integer sizes.
Mark Adler [Sun, 16 Aug 2015 01:04:50 +0000 (18:04 -0700)]
Use const for static tree descriptions in deflate.
This is in order to permit shared memory for these structures.
Conflicts:
deflate.h
Mark Adler [Sun, 2 Aug 2015 00:38:56 +0000 (17:38 -0700)]
Compile the gzopen_w() function when __CYGWIN__ defined.
Conflicts:
gzlib.c
zlib.h
Mark Adler [Thu, 24 Apr 2014 23:45:36 +0000 (19:45 -0400)]
Assure that gzoffset() is correct when appending.
An open() with O_APPEND followed by an lseek() to determine the
position will return zero for a non-empty file, even though the
next write will start at the end of the file. This commit works
around that by doing an lseek() to the end when appending.
Mark Adler [Sat, 26 Apr 2014 15:12:37 +0000 (08:12 -0700)]
Note in zlib.h that compress() uses Z_DEFAULT_COMPRESSION.
Mark Adler [Sun, 2 Aug 2015 23:47:14 +0000 (16:47 -0700)]
Do not initialize unsigned with -1 in compress.c uncompr.c.
Sun compiler complained. Use (unsigned)0 - 1 instead.
Mark Adler [Sat, 26 Apr 2014 15:04:09 +0000 (08:04 -0700)]
Fix uncompress() to work on lengths more than a maximum unsigned.
Conflicts:
uncompr.c
Mark Adler [Sat, 26 Apr 2014 04:52:19 +0000 (21:52 -0700)]
Fix compress() to work on lengths more than a maximum unsigned.
Conflicts:
compress.c
Mark Adler [Sun, 2 Aug 2015 07:02:07 +0000 (00:02 -0700)]
Align deflateParams() and its documentation in zlib.h.
This updates the documentation to reflect the behavior of
deflateParams() when it is not able to compress all of the input
data provided so far due to insufficient output space. It also
assures that data provided is compressed before the parameter
changes, even if at the beginning of the stream.
Conflicts:
deflate.c
Mark Adler [Tue, 3 Nov 2015 17:42:14 +0000 (18:42 +0100)]
Improve speed of gzprintf() in transparent mode.
A few minor modifications done to help with conflicts.
Mika Lindqvist [Tue, 3 Nov 2015 17:17:37 +0000 (18:17 +0100)]
Fix MSVC build and clean up unneccessary BSDLIBS leftovers
Mark Adler [Wed, 29 Jul 2015 06:17:49 +0000 (23:17 -0700)]
Clarify deflateReset() documentation.
It previously could have been misinterpreted to mean that parameter
changes after deflateInit2() would be reversed, which is not the
case.
(cherry picked from commit
5701f48cf5178355b1ec51614d44aa14251250e5 )
Mark Adler [Wed, 29 Jul 2015 06:13:53 +0000 (23:13 -0700)]
Avoid uninitialized access by gzclose_w().
(cherry picked from commit
c901a34c92c4aa74028f541a9773df726ce2b769 )
Conflicts:
deflate.c
Hans Kristian Rosbach [Tue, 3 Nov 2015 14:41:15 +0000 (15:41 +0100)]
Apply Mark Adlers fix to remove the need for -lbsd for reallocf, and
remove our detection of reallocf.
Mark Adler [Wed, 29 Jul 2015 04:41:20 +0000 (21:41 -0700)]
Fix inflateInit2() bug when windowBits is 16 or 32.
A windowBits value of 0, 16, or 32 gets the window bits from the
zlib header. However there is no zlib header for 16, or for 32
when the input is gzip. This commit sets the window bits for
inflate to 15 if a gzip stream is detected and windowBits was 16
or 32.
(cherry picked from commit
0db8fd371477f42c280ddeee29e6de092fabf948 )
Mark Adler [Wed, 29 Jul 2015 04:06:06 +0000 (21:06 -0700)]
Add comment about not using windowBits of 8 for deflate().
(cherry picked from commit
b56d1c62ee1ff9705026c94a780dd6e4577cda02 )
Hans Kristian Rosbach [Tue, 3 Nov 2015 14:32:46 +0000 (15:32 +0100)]
Follow manpage update from zlib, adding licence to manpage.
Mark Adler [Tue, 27 Jan 2015 05:41:26 +0000 (21:41 -0800)]
Remedy Coverity warning. [Randers-Pehrson]
Conflicts:
inflate.c
Hans Kristian Rosbach [Tue, 3 Nov 2015 14:22:16 +0000 (15:22 +0100)]
Clean up
Mark Adler [Sun, 5 Jul 2015 20:51:50 +0000 (13:51 -0700)]
Avoid left shift of a negative value in flush rank calculation.
The C standard permits an undefined result for a left shift of a
negative value.
Hans Kristian Rosbach [Tue, 3 Nov 2015 12:49:58 +0000 (13:49 +0100)]
Add support for std3_longest_match with MSVC
Based on patch by Mat Berchtold.
Mika Lindqvist [Fri, 30 Oct 2015 10:51:28 +0000 (12:51 +0200)]
Enable optimizations for MSVC and fix compiler warnings.
Hans Kristian Rosbach [Tue, 3 Nov 2015 12:06:44 +0000 (13:06 +0100)]
Clean up x86.c a bit
Mat Berchtold [Thu, 29 Oct 2015 14:39:32 +0000 (15:39 +0100)]
Add support for MSVC crc32 intrinsic
Mat Berchtold [Fri, 30 Oct 2015 13:37:32 +0000 (14:37 +0100)]
separated cpuid from up x86_check_features
new cpuid functions for different compilers
Mat Berchtold [Thu, 29 Oct 2015 14:38:02 +0000 (15:38 +0100)]
cpuid for msvc
Mat Berchtold [Thu, 29 Oct 2015 14:38:40 +0000 (15:38 +0100)]
fix macro for msvc
Mat Berchtold [Thu, 29 Oct 2015 14:40:16 +0000 (15:40 +0100)]
Add-ALIGNED_-macro-to-support-MSVC
Hans Kristian Rosbach [Fri, 30 Oct 2015 14:24:26 +0000 (15:24 +0100)]
Merge pull request #54 from matbech/patch-1
Replace define Byte with typedef
Hans Kristian Rosbach [Fri, 30 Oct 2015 14:16:43 +0000 (15:16 +0100)]
Merge pull request #53 from Dead2/hacknslash2
Deflate cleanup and optimizations
Mat [Fri, 30 Oct 2015 09:39:02 +0000 (10:39 +0100)]
fix for preprocessor namespace pollution
Do not pollute the namespace with a define for byte. This breaks various things. Instead use typedef which was also used in the original version of zlib.conf:
#if !defined(__MACTYPES__)
typedef unsigned char Byte; /* 8 bits */
#endif
typedef unsigned int uInt; /* 16 bits or more */
typedef unsigned long uLong; /* 32 bits or more */
#ifdef SMALL_MEDIUM
/* Borland C/C++ and some old MSC versions ignore FAR inside typedef */
# define Bytef Byte FAR
#else
typedef Byte FAR Bytef;
#endif
Hans Kristian Rosbach [Wed, 7 Oct 2015 08:44:06 +0000 (10:44 +0200)]
Merge pull request #47 from mtl1979/configure
Extend logic of multilib handling to work on 64-bit hosts too.
Hans Kristian Rosbach [Wed, 7 Oct 2015 08:42:41 +0000 (10:42 +0200)]
Merge pull request #49 from tbeu/patch-1
Remove now obsolete snprintf comment
tbeu [Tue, 6 Oct 2015 19:53:40 +0000 (21:53 +0200)]
Remove now obsolete comment
... about snprintf() being not available in MSVC
Mika Lindqvist [Sun, 23 Aug 2015 15:13:55 +0000 (18:13 +0300)]
Extend logic of multilib handling to work on 64-bit hosts too.
Hans Kristian Rosbach [Fri, 26 Jun 2015 13:43:09 +0000 (15:43 +0200)]
Whitespace cleanup
Hans Kristian Rosbach [Fri, 26 Jun 2015 13:22:36 +0000 (15:22 +0200)]
Make bulk_insert implementation of insert_match behave more like
the original code, this also lets us optimize the match_length=1 case.
Hans Kristian Rosbach [Thu, 25 Jun 2015 20:34:06 +0000 (22:34 +0200)]
No need to update hash_head.
Plus a single style change to match the other deflate algorithms.
Hans Kristian Rosbach [Wed, 24 Jun 2015 21:06:13 +0000 (23:06 +0200)]
Make insert_string_sse more similar to insert_string_c.
Mika Lindqvist [Wed, 24 Jun 2015 18:34:32 +0000 (21:34 +0300)]
Use bulk_insert_str() in deflate_medium.c too.
Mika Lindqvist [Wed, 24 Jun 2015 17:57:34 +0000 (20:57 +0300)]
Split deflate.c
* Separate common inlines and macros to deflate_p.h
* Separate deflate_fast related code to deflate_fast.c
* Separate deflate_medium related code to deflate_medium.c
* Separate deflate_slow related code to deflate_slow.c
Hans Kristian Rosbach [Tue, 23 Jun 2015 19:18:07 +0000 (21:18 +0200)]
Optimize insert_str() and bulk_insert_str().
Co-authored with Mika Lindqvist.
Hans Kristian Rosbach [Tue, 23 Jun 2015 19:14:20 +0000 (21:14 +0200)]
Optimize deflate_fast by using bulk_insert_str()
Co-authored with Mika Lindqvist.
Hans Kristian Rosbach [Thu, 11 Jun 2015 15:05:30 +0000 (17:05 +0200)]
Improve dictionary handling.
Based on commit
e07ac7d8 from Cloudflare's fork, by Vlad Krasnov.
René J.V. Bertin [Tue, 9 Jun 2015 21:59:15 +0000 (23:59 +0200)]
Allow building on OS X
Hans Kristian Rosbach [Fri, 5 Jun 2015 16:37:34 +0000 (18:37 +0200)]
Merge branch 'codestyle' into develop
Hans Kristian Rosbach [Fri, 5 Jun 2015 16:34:42 +0000 (18:34 +0200)]
Revert "Replace 'unsigned long' with most suitable fixed-size type."
This commit was cherry-picked and was not done, resulting in a few
problems with gcc on 64bit windows.
This reverts commit
edd7a72e056b994458ff040d4740b16b35336b60 .
Conflicts:
arch/x86/crc_folding.c
arch/x86/fill_window_sse.c
deflate.c
deflate.h
match.c
trees.c
Hans Kristian Rosbach [Fri, 5 Jun 2015 16:05:44 +0000 (18:05 +0200)]
Merge pull request #39 from mtl1979/minigzip
minigzip: allocate temporary buffer inside gzopen.
This fixes the abysmally slow minigzip decompression when compiling without --zlib-compat
Mika Lindqvist [Tue, 26 May 2015 12:51:58 +0000 (15:51 +0300)]
minigzip: allocate temporary buffer inside gzopen.
Hans Kristian Rosbach [Thu, 4 Jun 2015 18:40:31 +0000 (20:40 +0200)]
Merge pull request #37 from Dead2/codestyle
Clean up the code to more closely match the Google styleguide
Hans Kristian Rosbach [Thu, 4 Jun 2015 16:19:54 +0000 (18:19 +0200)]
Merge pull request #38 from mtl1979/vc14
Improve support for Visual Studio 2015.
Mika Lindqvist [Sat, 30 May 2015 17:54:30 +0000 (20:54 +0300)]
Fix detecting Windows in zconf.h(.in)
Mika Lindqvist [Fri, 29 May 2015 23:13:47 +0000 (02:13 +0300)]
snprintf() was added to Visual Studio 2015.
Hans Kristian Rosbach [Mon, 25 May 2015 21:17:58 +0000 (23:17 +0200)]
Fix compile errors in trees.c after style cleanup
Hans Kristian Rosbach [Mon, 25 May 2015 21:05:13 +0000 (23:05 +0200)]
Style cleanup for trees.*
Hans Kristian Rosbach [Mon, 25 May 2015 21:04:39 +0000 (23:04 +0200)]
Style cleanup for compress/uncompress and longest_match code
Hans Kristian Rosbach [Mon, 25 May 2015 21:03:56 +0000 (23:03 +0200)]
Style cleanup for zutil.h
Hans Kristian Rosbach [Mon, 25 May 2015 21:03:25 +0000 (23:03 +0200)]
Style cleanup for adler/crc code
Hans Kristian Rosbach [Mon, 25 May 2015 21:01:55 +0000 (23:01 +0200)]
Style cleanup for gzfile code
Hans Kristian Rosbach [Mon, 25 May 2015 21:01:26 +0000 (23:01 +0200)]
Style cleanup for deflate code
Hans Kristian Rosbach [Mon, 25 May 2015 21:00:54 +0000 (23:00 +0200)]
Style cleanup for inflate code
Hans Kristian Rosbach [Mon, 25 May 2015 21:00:05 +0000 (23:00 +0200)]
Style cleanup for zlib.h
Hans Kristian Rosbach [Mon, 25 May 2015 20:59:26 +0000 (22:59 +0200)]
Style cleanup for arch/x86
Hans Kristian Rosbach [Sun, 24 May 2015 17:53:41 +0000 (19:53 +0200)]
Add likely/unlikely support for ICC and Clang
Hans Kristian Rosbach [Sun, 24 May 2015 17:34:12 +0000 (19:34 +0200)]
Remove support for NO_DEFLATE
Mika Lindqvist [Mon, 18 May 2015 19:11:02 +0000 (22:11 +0300)]
Replace 'unsigned long' with most suitable fixed-size type.
Mika Lindqvist [Thu, 7 May 2015 16:29:27 +0000 (19:29 +0300)]
Style cleanup.
Hans Kristian Rosbach [Sat, 23 May 2015 19:15:42 +0000 (21:15 +0200)]
Merge branch 'develop' of github.com:Dead2/zlib-ng into develop
Hans Kristian Rosbach [Sat, 23 May 2015 19:14:45 +0000 (21:14 +0200)]
Update remaining function prototypes to ANSI C standard
Hans Kristian Rosbach [Sat, 23 May 2015 19:04:39 +0000 (21:04 +0200)]
Remove unused hash_head input parameter from function emit_match
Hans Kristian Rosbach [Sat, 23 May 2015 07:54:06 +0000 (09:54 +0200)]
Merge pull request #36 from mtl1979/uchar
Cleanup user-defined types for 'unsigned char'
Mika Lindqvist [Fri, 22 May 2015 22:17:27 +0000 (01:17 +0300)]
Cleanup user-defined types for 'unsigned char'
* Change 'uch' to 'unsigned char'
* Change 'Byte' to 'unsigned char'
Hans Kristian Rosbach [Fri, 22 May 2015 20:37:49 +0000 (22:37 +0200)]
Merge pull request #35 from mtl1979/cleanup
Replace (void *)0 with NULL.
Hans Kristian Rosbach [Fri, 22 May 2015 20:32:42 +0000 (22:32 +0200)]
Dont set hash_head, it is overwritten before being accessed again.
Hans Kristian Rosbach [Fri, 22 May 2015 20:26:18 +0000 (22:26 +0200)]
Make it clear for the compiler that fill_window_c is never
going to be called if sse2 is enabled and the check is disabled.
Mika Lindqvist [Mon, 18 May 2015 22:35:49 +0000 (01:35 +0300)]
Replace (void *)0 with NULL.
Hans Kristian Rosbach [Fri, 22 May 2015 20:04:25 +0000 (22:04 +0200)]
Actually set err before checking it
Hans Kristian Rosbach [Fri, 22 May 2015 19:26:00 +0000 (21:26 +0200)]
Merge pull request #34 from mtl1979/ushort
Change "unsigned short" and "ush" to "uint16_t"
Hans Kristian Rosbach [Sat, 16 May 2015 19:23:07 +0000 (21:23 +0200)]
Replace unsigned short with uint16_t
Conflicts:
inflate.h
inftrees.c
inftrees.h
match.c
Hans Kristian Rosbach [Sat, 16 May 2015 19:15:51 +0000 (21:15 +0200)]
Replace ush with uint16_t
Conflicts:
deflate.c
deflate.h
trees.c
zutil.h
Hans Kristian Rosbach [Fri, 22 May 2015 15:45:32 +0000 (17:45 +0200)]
Merge pull request #33 from mtl1979/infcover
Cleanup test/infcover.c
Hans Kristian Rosbach [Fri, 22 May 2015 15:43:51 +0000 (17:43 +0200)]
Merge pull request #32 from mtl1979/vc14
snprintf() was added to Visual Studio 2015.
Mika Lindqvist [Fri, 22 May 2015 14:20:48 +0000 (17:20 +0300)]
Remove "local" as it was always defined as "static"
* If reallocf() is not available, don't call realloc directly as it might
cause memory leak.
Mika Lindqvist [Wed, 20 May 2015 19:57:56 +0000 (22:57 +0300)]
snprintf() was added to Visual Studio 2015.
Hans Kristian Rosbach [Sun, 17 May 2015 16:12:48 +0000 (18:12 +0200)]
Merge branch 'develop' of github.com:Dead2/zlib-ng into develop
Daniel Axtens [Fri, 8 May 2015 11:46:51 +0000 (21:46 +1000)]
Kill Byte and Bytef
Signed-off-by: Daniel Axtens <dja@axtens.net>
Conflicts:
adler32.c
compress.c
deflate.c
inflate.c
match.c
test/example.c
uncompr.c
zlib.h
Hans Kristian Rosbach [Thu, 14 May 2015 10:04:51 +0000 (12:04 +0200)]
Replace NULL comparisons
Conflicts:
trees.c
Hans Kristian Rosbach [Thu, 14 May 2015 17:09:00 +0000 (19:09 +0200)]
Merge pull request #30 from mtl1979/mingw
Fix ARCH detection when default target of gcc doesn't match uname.
Mika Lindqvist [Thu, 14 May 2015 12:13:18 +0000 (15:13 +0300)]
Fix ARCH detection when default target of gcc doesn't match uname.
Hans Kristian Rosbach [Wed, 13 May 2015 20:34:45 +0000 (22:34 +0200)]
Merge pull request #29 from mtl1979/mingw
Fix MinGW and infcover related problems
Mika Lindqvist [Wed, 13 May 2015 18:34:32 +0000 (21:34 +0300)]
Fix MinGW failing to find infcover.exe when stripping the executable.
Fix compiling infcover.c under MinGW