• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

buffer_demo.adbD22-Nov-20233.6 KiB10762

mtest.adbD22-Nov-20234.4 KiB15797

read.adbD22-Nov-20234.1 KiB15785

readme.txtD22-Nov-20232.1 KiB6639

test.adbD22-Nov-202312.9 KiB464257

zlib-streams.adbD22-Nov-20235.9 KiB226130

zlib-streams.adsD22-Nov-20234.2 KiB11553

zlib-thin.adbD22-Nov-20233.3 KiB14278

zlib-thin.adsD22-Nov-202315.4 KiB451294

zlib.adbD22-Nov-202319.9 KiB702485

zlib.adsD22-Nov-202313.3 KiB329140

zlib.gprD22-Nov-2023511 2115

readme.txt

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