1 1.1 christos ZLib for Ada thick binding (ZLib.Ada) 2 1.1 christos Release 1.3 3 1.1 christos 4 1.1 christos ZLib.Ada is a thick binding interface to the popular ZLib data 5 1.1 christos compression library, available at http://www.gzip.org/zlib/. 6 1.1 christos It provides Ada-style access to the ZLib C library. 7 1.1 christos 8 1.1 christos 9 1.1 christos Here are the main changes since ZLib.Ada 1.2: 10 1.1 christos 11 1.1.1.2 christos - Attention: ZLib.Read generic routine have a initialization requirement 12 1.1.1.2 christos for Read_Last parameter now. It is a bit incompatible with previous version, 13 1.1 christos but extends functionality, we could use new parameters Allow_Read_Some and 14 1.1 christos Flush now. 15 1.1 christos 16 1.1 christos - Added Is_Open routines to ZLib and ZLib.Streams packages. 17 1.1 christos 18 1.1 christos - Add pragma Assert to check Stream_Element is 8 bit. 19 1.1 christos 20 1.1 christos - Fix extraction to buffer with exact known decompressed size. Error reported by 21 1.1 christos Steve Sangwine. 22 1.1 christos 23 1.1 christos - Fix definition of ULong (changed to unsigned_long), fix regression on 64 bits 24 1.1 christos computers. Patch provided by Pascal Obry. 25 1.1 christos 26 1.1 christos - Add Status_Error exception definition. 27 1.1 christos 28 1.1 christos - Add pragma Assertion that Ada.Streams.Stream_Element size is 8 bit. 29 1.1 christos 30 1.1 christos 31 1.1 christos How to build ZLib.Ada under GNAT 32 1.1 christos 33 1.1 christos You should have the ZLib library already build on your computer, before 34 1.1 christos building ZLib.Ada. Make the directory of ZLib.Ada sources current and 35 1.1 christos issue the command: 36 1.1 christos 37 1.1 christos gnatmake test -largs -L<directory where libz.a is> -lz 38 1.1 christos 39 1.1 christos Or use the GNAT project file build for GNAT 3.15 or later: 40 1.1 christos 41 1.1 christos gnatmake -Pzlib.gpr -L<directory where libz.a is> 42 1.1 christos 43 1.1 christos 44 1.1 christos How to build ZLib.Ada under Aonix ObjectAda for Win32 7.2.2 45 1.1 christos 46 1.1 christos 1. Make a project with all *.ads and *.adb files from the distribution. 47 1.1 christos 2. Build the libz.a library from the ZLib C sources. 48 1.1 christos 3. Rename libz.a to z.lib. 49 1.1 christos 4. Add the library z.lib to the project. 50 1.1 christos 5. Add the libc.lib library from the ObjectAda distribution to the project. 51 1.1 christos 6. Build the executable using test.adb as a main procedure. 52 1.1 christos 53 1.1 christos 54 1.1 christos How to use ZLib.Ada 55 1.1 christos 56 1.1 christos The source files test.adb and read.adb are small demo programs that show 57 1.1 christos the main functionality of ZLib.Ada. 58 1.1 christos 59 1.1 christos The routines from the package specifications are commented. 60 1.1 christos 61 1.1 christos 62 1.1 christos Homepage: http://zlib-ada.sourceforge.net/ 63 1.1 christos Author: Dmitriy Anisimkov <anisimkov (a] yahoo.com> 64 1.1 christos 65 1.1 christos Contributors: Pascal Obry <pascal (a] obry.org>, Steve Sangwine <sjs (a] essex.ac.uk> 66