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