Skip to content

Commit

Permalink
zlib 1.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
madler committed Sep 10, 2011
1 parent 7a69557 commit 79fbcdc
Show file tree
Hide file tree
Showing 55 changed files with 2,167 additions and 194 deletions.
9 changes: 9 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@

ChangeLog file for zlib

Changes in 1.2.2 (3 October 2004)
- Update zlib.h comments on gzip in-memory processing
- Set adler to 1 in inflateReset() to support Java test suite [Walles]
- Add contrib/dotzlib [Ravn]
- Update win32/DLL_FAQ.txt [Truta]
- Update contrib/minizip [Vollant]
- Move contrib/visual-basic.txt to old/ [Truta]
- Fix assembler builds in projects/visualc6/ [Truta]

Changes in 1.2.1.2 (9 September 2004)
- Update INDEX file
- Fix trees.c to update strm->data_type (no one ever noticed!)
Expand Down
2 changes: 1 addition & 1 deletion FAQ
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ The lastest zlib FAQ is at http://www.gzip.org/zlib/zlib_faq.html
After installing zlib 1.1.4 on Solaris 2.6, running applications using zlib
generates an error such as:

ld.so.1: rpm: fatal: relocation error: file /usr/local/lib/libz.so:
ld.so.1: rpm: fatal: relocation error: file /usr/local/lib/libz.so:
symbol __register_frame_info: referenced symbol not found

The symbol __register_frame_info is not part of zlib, it is generated by
Expand Down
2 changes: 1 addition & 1 deletion INDEX
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ algorithm.txt description of the (de)compression algorithm
configure configure script for Unix
zconf.in.h template for zconf.h (used by configure)

amiga/ makefiles for Amiga SAS C
amiga/ makefiles for Amiga SAS C
as400/ makefiles for IBM AS/400
msdos/ makefiles for MSDOS
old/ makefiles for various architectures and zlib documentation
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ CPP=$(CC) -E

LIBS=libz.a
SHAREDLIB=libz.so
SHAREDLIBV=libz.so.1.2.1.2
SHAREDLIBV=libz.so.1.2.2
SHAREDLIBM=libz.so.1

AR=ar rc
Expand Down
2 changes: 1 addition & 1 deletion Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ CPP=$(CC) -E

LIBS=libz.a
SHAREDLIB=libz.so
SHAREDLIBV=libz.so.1.2.1.2
SHAREDLIBV=libz.so.1.2.2
SHAREDLIBM=libz.so.1

AR=ar rc
Expand Down
4 changes: 2 additions & 2 deletions README
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ZLIB DATA COMPRESSION LIBRARY

zlib 1.2.1.2 is a general purpose data compression library. All the code is
zlib 1.2.2 is a general purpose data compression library. All the code is
thread safe. The data format used by the zlib library is described by RFCs
(Request for Comments) 1950 to 1952 in the files
http://www.ietf.org/rfc/rfc1950.txt (zlib format), rfc1951.txt (deflate format)
Expand Down Expand Up @@ -34,7 +34,7 @@ Mark Nelson <[email protected]> wrote an article about zlib for the Jan. 1997
issue of Dr. Dobb's Journal; a copy of the article is available in
http://dogma.net/markn/articles/zlibtool/zlibtool.htm

The changes made in version 1.2.1.2 are documented in the file ChangeLog.
The changes made in version 1.2.2 are documented in the file ChangeLog.

Unsupported third party contributions are provided in directory "contrib".

Expand Down
2 changes: 1 addition & 1 deletion as400/compile.clp
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,6 @@
&MODLIB/INFTREES &MODLIB/TREES +
&MODLIB/UNCOMPR &MODLIB/ZUTIL) +
SRCFILE(&SRCLIB/&CTLFILE) SRCMBR(BNDSRC) +
TEXT('ZLIB 1.2.1') TGTRLS(V4R4M0)
TEXT('ZLIB 1.2.2') TGTRLS(V4R4M0)

ENDPGM
2 changes: 1 addition & 1 deletion as400/readme.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ZLIB version 1.2.1 for AS400 installation instructions
ZLIB version 1.2.2 for AS400 installation instructions

I) From an AS400 *SAVF file:

Expand Down
6 changes: 3 additions & 3 deletions as400/zlib.inc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
* ZLIB.INC - Interface to the general purpose compression library
*
* ILE RPG400 version by Patrick Monnerat, DATASPHERE.
* Version 1.2.1.2
* Version 1.2.2
*
*
* WARNING:
Expand All @@ -20,8 +20,8 @@
* Constants
**************************************************************************
*
D ZLIB_VERSION C '1.2.1.2' Header's version
D ZLIB_VERNUM C X'1212'
D ZLIB_VERSION C '1.2.2' Header's version
D ZLIB_VERNUM C X'1220'
*
D Z_NO_FLUSH C 0
D Z_SYNC_FLUSH C 2
Expand Down
10 changes: 5 additions & 5 deletions contrib/README.contrib
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ blast/ by Mark Adler <[email protected]>
delphi/ by Cosmin Truta <[email protected]>
Support for Delphi and C++ Builder

dotzlib/ by Henrik Ravn <[email protected]>
Support for Microsoft .Net and Visual C++ .Net

gzappend/ by Mark Adler <[email protected]>
append to a gzip file -- illustrates the use of Z_BLOCK

Expand Down Expand Up @@ -60,11 +63,8 @@ puff/ by Mark Adler <[email protected]>
testzlib/ by Gilles Vollant <[email protected]>
Example of the use of zlib

untgz/ by "Pedro A. Aranda Guti\irrez" <[email protected]>
untgz/ by Pedro A. Aranda Gutierrez <[email protected]>
A very simple tar.gz file extractor using zlib

visual-basic.txt by Carlos Rios <[email protected]>
How to use compress(), uncompress() and the gz* functions from VB

vstudio/ by Gilles Vollant <[email protected]>
Building a minizip-enhanced zlib with Visual Studio .NET
Building a minizip-enhanced zlib with Microsoft Visual Studio
12 changes: 6 additions & 6 deletions contrib/ada/readme.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
ZLib for Ada thick binding (ZLib.Ada)
Release 1.3
ZLib for Ada thick binding (ZLib.Ada)
Release 1.3

ZLib.Ada is a thick binding interface to the popular ZLib data
compression library, available at http://www.gzip.org/zlib/.
It provides Ada-style access to the ZLib C library.


Here are the main changes since ZLib.Ada 1.2:
Here are the main changes since ZLib.Ada 1.2:

- Attension: ZLib.Read generic routine have a initialization requirement
for Read_Last parameter now. It is a bit incompartible with previous version,
Expand All @@ -28,7 +28,7 @@ It provides Ada-style access to the ZLib C library.
- Add pragma Assertion that Ada.Streams.Stream_Element size is 8 bit.


How to build ZLib.Ada under GNAT
How to build ZLib.Ada under GNAT

You should have the ZLib library already build on your computer, before
building ZLib.Ada. Make the directory of ZLib.Ada sources current and
Expand All @@ -41,7 +41,7 @@ Or use the GNAT project file build for GNAT 3.15 or later:
gnatmake -Pzlib.gpr -L<directory where libz.a is>


How to build ZLib.Ada under Aonix ObjectAda for Win32 7.2.2
How to build ZLib.Ada under Aonix ObjectAda for Win32 7.2.2

1. Make a project with all *.ads and *.adb files from the distribution.
2. Build the libz.a library from the ZLib C sources.
Expand All @@ -51,7 +51,7 @@ Or use the GNAT project file build for GNAT 3.15 or later:
6. Build the executable using test.adb as a main procedure.


How to use ZLib.Ada
How to use ZLib.Ada

The source files test.adb and read.adb are small demo programs that show
the main functionality of ZLib.Ada.
Expand Down
2 changes: 1 addition & 1 deletion contrib/ada/zlib-streams.adb
Original file line number Diff line number Diff line change
Expand Up @@ -222,4 +222,4 @@ package body ZLib.Streams is
return Total_Out (Stream.Writer);
end Write_Total_Out;

end ZLib.Streams;
end ZLib.Streams;
2 changes: 1 addition & 1 deletion contrib/ada/zlib-streams.ads
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,4 @@ private
Writer : Filter_Type;
end record;

end ZLib.Streams;
end ZLib.Streams;
41 changes: 20 additions & 21 deletions contrib/ada/zlib.gpr
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
project Zlib is

for Languages use ("Ada");
for Source_Dirs use (".");
for Object_Dir use ".";
for Main use ("test.adb", "mtest.adb", "read.adb", "buffer_demo");

package Compiler is
for Default_Switches ("ada") use ("-gnatwcfilopru", "-gnatVcdfimorst", "-gnatyabcefhiklmnoprst");
end Compiler;

package Linker is
for Default_Switches ("ada") use ("-lz");
end Linker;

package Builder is
for Default_Switches ("ada") use ("-s", "-gnatQ");
end Builder;

end Zlib;

project Zlib is

for Languages use ("Ada");
for Source_Dirs use (".");
for Object_Dir use ".";
for Main use ("test.adb", "mtest.adb", "read.adb", "buffer_demo");

package Compiler is
for Default_Switches ("ada") use ("-gnatwcfilopru", "-gnatVcdfimorst", "-gnatyabcefhiklmnoprst");
end Compiler;

package Linker is
for Default_Switches ("ada") use ("-lz");
end Linker;

package Builder is
for Default_Switches ("ada") use ("-s", "-gnatQ");
end Builder;

end Zlib;
33 changes: 33 additions & 0 deletions contrib/dotzlib/DotZLib.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8" ?>
<project name="DotZLib" default="build" basedir="./DotZLib">
<description>A .Net wrapper library around ZLib1.dll</description>

<property name="nunit.location" value="c:/program files/NUnit V2.1/bin" />
<property name="build.root" value="bin" />

<property name="debug" value="true" />
<property name="nunit" value="true" />

<property name="build.folder" value="${build.root}/debug/" if="${debug}" />
<property name="build.folder" value="${build.root}/release/" unless="${debug}" />

<target name="clean" description="Remove all generated files">
<delete dir="${build.root}" failonerror="false" />
</target>

<target name="build" description="compiles the source code">

<mkdir dir="${build.folder}" />
<csc target="library" output="${build.folder}DotZLib.dll" debug="${debug}">
<references basedir="${nunit.location}">
<includes if="${nunit}" name="nunit.framework.dll" />
</references>
<sources>
<includes name="*.cs" />
<excludes name="UnitTests.cs" unless="${nunit}" />
</sources>
<arg value="/d:nunit" if="${nunit}" />
</csc>
</target>

</project>
Binary file added contrib/dotzlib/DotZLib.chm
Binary file not shown.
21 changes: 21 additions & 0 deletions contrib/dotzlib/DotZLib.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Microsoft Visual Studio Solution File, Format Version 8.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotZLib", "DotZLib\DotZLib.csproj", "{BB1EE0B1-1808-46CB-B786-949D91117FC5}"
ProjectSection(ProjectDependencies) = postProject
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfiguration) = preSolution
Debug = Debug
Release = Release
EndGlobalSection
GlobalSection(ProjectConfiguration) = postSolution
{BB1EE0B1-1808-46CB-B786-949D91117FC5}.Debug.ActiveCfg = Debug|.NET
{BB1EE0B1-1808-46CB-B786-949D91117FC5}.Debug.Build.0 = Debug|.NET
{BB1EE0B1-1808-46CB-B786-949D91117FC5}.Release.ActiveCfg = Release|.NET
{BB1EE0B1-1808-46CB-B786-949D91117FC5}.Release.Build.0 = Release|.NET
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
EndGlobalSection
GlobalSection(ExtensibilityAddIns) = postSolution
EndGlobalSection
EndGlobal
58 changes: 58 additions & 0 deletions contrib/dotzlib/DotZLib/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
using System.Reflection;
using System.Runtime.CompilerServices;

//
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
//
[assembly: AssemblyTitle("DotZLib")]
[assembly: AssemblyDescription(".Net bindings for ZLib compression dll 1.2.x")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Henrik Ravn")]
[assembly: AssemblyProduct("")]
[assembly: AssemblyCopyright("(c) 2004 by Henrik Ravn")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

//
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:

[assembly: AssemblyVersion("1.0.*")]

//
// In order to sign your assembly you must specify a key to use. Refer to the
// Microsoft .NET Framework documentation for more information on assembly signing.
//
// Use the attributes below to control which key is used for signing.
//
// Notes:
// (*) If no key is specified, the assembly is not signed.
// (*) KeyName refers to a key that has been installed in the Crypto Service
// Provider (CSP) on your machine. KeyFile refers to a file which contains
// a key.
// (*) If the KeyFile and the KeyName values are both specified, the
// following processing occurs:
// (1) If the KeyName can be found in the CSP, that key is used.
// (2) If the KeyName does not exist and the KeyFile does exist, the key
// in the KeyFile is installed into the CSP and used.
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
// When specifying the KeyFile, the location of the KeyFile should be
// relative to the project output directory which is
// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
// located in the project directory, you would specify the AssemblyKeyFile
// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
// documentation for more information on this.
//
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("")]
[assembly: AssemblyKeyName("")]
Loading

0 comments on commit 79fbcdc

Please sign in to comment.