annotate src/zlib-1.2.8/contrib/ada/readme.txt @ 169:223a55898ab9 tip default

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