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