479 Commits

Author SHA1 Message Date
Pascal Obry
c576b53442 Minor code clean-up and reformatting.
Motivated by eng/toolchain/aws#74
2025-01-21 07:56:55 +01:00
Pascal Obry
d7735b587b Use Ada 2022 @ short hand syntax.
Motivated by eng/toolchain/aws#74
2025-01-21 07:56:55 +01:00
Pascal Obry
a9a69553c1 Use Ada 2022 array aggregate syntax.
Motivated by eng/toolchain/aws#74
2025-01-21 07:56:55 +01:00
Pascal Obry
1f9fa1cba0 Allow for verbose makefile.
Done as for Templates_Parser.

TN eng/toolchain/aws#60
2024-12-02 17:31:38 +00:00
Pascal Obry
990287f4df Revert all Ada 2022 changes. 2024-03-14 23:17:52 +01:00
Pascal Obry
32c9ee95d4 Minor code clean-up and reformatting. 2024-03-14 17:09:44 +00:00
Pascal Obry
f628de229b Use Ada 2022 @ short hand syntax. 2024-03-14 17:09:44 +00:00
Pascal Obry
1cf6a7866c Use Ada 2022 array aggregate syntax. 2024-03-14 17:09:44 +00:00
Pascal Obry
dcd2f6d688 Rework build setup to allow for out-of-tree build.
This rework make it possible to build in-tree as before:

   $ make setup
   $ make

And from another directory (out-of-tree build):

   $ cd <build-dir>
   $ make -C ../aws BLD_DIR=$PWD setup
   $ make -C ../aws BLD_DIR=$PWD

To build the demos:

   $ make -C ../aws/demos BLD_DIR=$PWD

Support for the testsuite has also been reworked to use the out-of-tree
build when needed:

   $ make -C ../aws BLD_DIR=$PWD run_regtests
2024-01-19 08:03:17 +00:00
Pascal Obry
76ae4648ee Properly initialize In_Last to avoid an exception.
The In_Last parameter is increated by one by the caller and so
we really need to initialize it to avoid a constraint error.

TN: eng/toolchain/aws#21
2023-10-25 08:17:59 +02:00
Pascal Obry
5c31bdfaa6 Add static-pic build variant.
Fixes S605-001.
2023-09-08 07:22:13 +00:00
Dmitriy Anisimkov
178767546d Detect end of ZLib stream better
When size of gzipped stream is few bytes more than multiple of
Read_Buffer_Size stream creation parameter, the end of stream can be
detected only after last empty read. To fix that we should try to read
and inflate ahead.

TN: U727-039
2021-08-18 15:06:21 +06:00
Dmitriy Anisimkov
088c7048ff New routine to detect end of ZLib stream
Minor reformat.

TN: U727-039
2021-08-10 13:52:36 +06:00
Dmitriy Anisimkov
ce9d763b82 Fixes and improvements for Memory_Stream
no-tn-check

Fixes related for memory blocks with Block'First /= 1.
2021-06-26 12:56:54 +06:00
Dmitriy Anisimkov
59d54778cb More common end-of-stream detection
TC01-031

Raise exception when there was no Z_STREAM_END return code and there is no
input data and there is no output data and Flush = Finish. This way the
error will be detected not only in Read but also in Write and
Generic_Translate routines.
Test improved to detect end-of-stream error even if only one byte removed
from the end of file.
2020-12-10 00:21:27 +06:00
Pascal Obry
8646dce7cc Fix Zlib end-of-stream detection.
When no more data are read from the stream and there is no more
to be read we make sure we exit the loop in Read to avoid an
infinite loop. This happens when reading a set of bytes for a
multi-byte type.

Add corresponding regression test.

For TC01-031.
2020-12-03 16:58:20 +01:00
Pascal Obry
97aa83c33d Minor reformatting. 2020-10-18 23:02:52 +02:00
Dmitriy Anisimkov
bde166bcdc Detect error when input data to inflate is zero length
TA13-028

Do not ignore Z_BUF_ERROR if no data on input.
2020-10-17 09:40:57 +02:00
Nicolas Boulenguez
20bf52aa37 Pass ADAFLAGS to include.gpr and add CPPFLAGS to CFLAGS.
This patch does not apply the common style flags to include/*, it only
allow explicit user flags (ADAFLAGS) to override default flags.

The External is in shared.gpr so that there is only one environment
lookup for each variable.
2020-04-20 14:39:48 +02:00
Dmitriy Anisimkov
bde9f5a194 Don't raise error on Flush repeat
S325-036
2019-09-25 16:33:23 +06:00
Dmitriy Anisimkov
ce404d1e48 Synchronize with zlib-ada repository 2019-09-25 15:26:05 +06:00
Dmitriy Anisimkov
2814995677 Update ZLib sources to the latest version 1.2.11
S201-013
2019-02-03 18:47:18 +01:00
Dmitriy Anisimkov
f38f41b98b Use "to" instead of "for" in English properly. 2018-07-22 23:15:57 +06:00
Dmitriy Anisimkov
4211dfdea7 Synch with original ZLib-Ada repository
ZLib-Ada original repository ssh://git.code.sf.net/p/zlib-ada/git
was accepted all AWS modifications and returns one back to AWS here.
At this stage include/zlib?* files absolutely equal to zlib-ada
sources after commit 4b89ae14ca71f8584f8202b8f9bf8874f26431a9.
2018-07-16 05:18:52 +06:00
Pascal Obry
9c181ea8a9 Merge branch 'po/send-socket-set'
* po/send-socket-set:
  Add support for sending WebSocket messages without blocking.
  Add support for memory socket.
  Add support for sending the same data to a Socket_Set.
  Add new routine Pending in Memory_Stream.
  Minor style fixes.
2015-11-17 19:17:28 +01:00