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