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