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