cannam@128: ZLib for Ada thick binding (ZLib.Ada) cannam@128: Release 1.3 cannam@128: cannam@128: ZLib.Ada is a thick binding interface to the popular ZLib data cannam@128: compression library, available at http://www.gzip.org/zlib/. cannam@128: It provides Ada-style access to the ZLib C library. cannam@128: cannam@128: cannam@128: Here are the main changes since ZLib.Ada 1.2: cannam@128: cannam@128: - Attension: ZLib.Read generic routine have a initialization requirement cannam@128: for Read_Last parameter now. It is a bit incompartible with previous version, cannam@128: but extends functionality, we could use new parameters Allow_Read_Some and cannam@128: Flush now. cannam@128: cannam@128: - Added Is_Open routines to ZLib and ZLib.Streams packages. cannam@128: cannam@128: - Add pragma Assert to check Stream_Element is 8 bit. cannam@128: cannam@128: - Fix extraction to buffer with exact known decompressed size. Error reported by cannam@128: Steve Sangwine. cannam@128: cannam@128: - Fix definition of ULong (changed to unsigned_long), fix regression on 64 bits cannam@128: computers. Patch provided by Pascal Obry. cannam@128: cannam@128: - Add Status_Error exception definition. cannam@128: cannam@128: - Add pragma Assertion that Ada.Streams.Stream_Element size is 8 bit. cannam@128: cannam@128: cannam@128: How to build ZLib.Ada under GNAT cannam@128: cannam@128: You should have the ZLib library already build on your computer, before cannam@128: building ZLib.Ada. Make the directory of ZLib.Ada sources current and cannam@128: issue the command: cannam@128: cannam@128: gnatmake test -largs -L -lz cannam@128: cannam@128: Or use the GNAT project file build for GNAT 3.15 or later: cannam@128: cannam@128: gnatmake -Pzlib.gpr -L cannam@128: cannam@128: cannam@128: How to build ZLib.Ada under Aonix ObjectAda for Win32 7.2.2 cannam@128: cannam@128: 1. Make a project with all *.ads and *.adb files from the distribution. cannam@128: 2. Build the libz.a library from the ZLib C sources. cannam@128: 3. Rename libz.a to z.lib. cannam@128: 4. Add the library z.lib to the project. cannam@128: 5. Add the libc.lib library from the ObjectAda distribution to the project. cannam@128: 6. Build the executable using test.adb as a main procedure. cannam@128: cannam@128: cannam@128: How to use ZLib.Ada cannam@128: cannam@128: The source files test.adb and read.adb are small demo programs that show cannam@128: the main functionality of ZLib.Ada. cannam@128: cannam@128: The routines from the package specifications are commented. cannam@128: cannam@128: cannam@128: Homepage: http://zlib-ada.sourceforge.net/ cannam@128: Author: Dmitriy Anisimkov cannam@128: cannam@128: Contributors: Pascal Obry , Steve Sangwine