ClickHouse/contrib/libzlib-ng
proller f7c0998599 fix clang build (#353)
* Freebsd clang3.8 compile fixes

* clean

* fix

* fix clang build
2017-01-18 02:48:01 +04:00
..
arch import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
doc import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
test import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
win32 import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
.gitignore import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
.travis.yml import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
adler32.c import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
ChangeLog.zlib import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
CMakeLists.txt fix clang build (#353) 2017-01-18 02:48:01 +04:00
compress.c import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
configure import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
crc32.c import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
crc32.h import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
deflate_fast.c import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
deflate_medium.c import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
deflate_p.h import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
deflate_slow.c import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
deflate.c import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
deflate.h import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
FAQ.zlib import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
gzclose.c import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
gzguts.h import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
gzlib.c import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
gzread.c import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
gzwrite.c import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
INDEX import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
infback.c import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
inffast.c import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
inffast.h import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
inffixed.h import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
inflate.c Fixed error on clang [#CLICKHOUSE-2]. 2017-01-14 12:12:16 +03:00
inflate.h import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
inftrees.c import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
inftrees.h import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
LICENSE.md import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
Makefile.in import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
match.c import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
match.h import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
README import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
README.clickhouse add libzlib-ng/README.clickhouse [#METR-23582] 2017-01-08 21:26:53 +03:00
README.md import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
README.zlib import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
treebuild.xml import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
trees.c import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
trees.h import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
uncompr.c import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
zconf.h.in import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
zlib.3 import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
zlib.3.pdf import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
zlib.h import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
zlib.map import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
zlib.pc.cmakein import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
zlib.pc.in import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
zutil.c import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00
zutil.h import zlib-ng sources from 343c4c5491 [#METR-23582] 2017-01-08 21:26:03 +03:00

Travis CI: build status

zlib-ng - zlib for the next generation systems

Maintained by Hans Kristian Rosbach aka Dead2 (zlib-ng àt circlestorm dót org)

Fork Motivation and History

The motivation for this fork was due to seeing several 3rd party contributions containing new optimizations not getting implemented into the official zlib repository.

Mark Adler has been maintaining zlib for a very long time, and he has done a great job and hopefully he will continue for a long time yet. The idea of zlib-ng is not to replace zlib, but to co-exist as a drop-in replacement with a lower threshold for code change.

zlib has a long history and is incredibly portable, even supporting lots of systems that predate the Internet. This is great, but it does complicate further development and maintainability. The zlib code has to make numerous workarounds for old compilers that do not understand ANSI-C or to accommodate systems with limitations such as operating in a 16-bit environment.

Many of these workarounds are only maintenance burdens, some of them are pretty huge code-wise. For example, the [v]s[n]printf workaround code has a whopping 8 different implementations just to cater to various old compilers. With this many workarounds cluttered throughout the code, new programmers with an idea/interest for zlib will need to take some time to figure out why all of these seemingly strange things are used, and how to work within those confines.

So I decided to make a fork, merge all the Intel optimizations, merge the Cloudflare optimizations that did not conflict, plus a couple of other smaller patches. Then I started cleaning out workarounds, various dead code, all contrib and example code as there is little point in having those in this fork for different reasons.

Lastly I have been cleaning up the handling of different arches, so that it will be easier to implement arch-specific code without cluttering up the main code too much.

Now, there is still a lot to do and I am sure there are better ways of doing several of the changes I have done. And I would be delighted to receive patches, preferably as pull requests on github. Just remember that any code you submit must be your own and it must be zlib licensed.

Please read LICENSE.md, it is very simple and very liberal.

Acknowledgments

Big thanks to Raske Sider AS / raskesider.no for sponsoring my maintainership of zlib-ng.

The deflate format used by zlib was defined by Phil Katz. The deflate and zlib specifications were written by L. Peter Deutsch.

zlib was originally created by Jean-loup Gailly (compression) and Mark Adler (decompression).