Commit Graph

2867 Commits

Author SHA1 Message Date
Nicolas Boulenguez
031bdcc731 projects: style improvements
Remove the Name variable, which duplicates an attribute.

Replace hardcoded Mains with Name.

Remove transitional Library_Type variable from library projects.

Make explicit that Library_Version is only useful during relocatable
builds.

Compute Library_Version from Library_Name, in case it ever differs
from Name.

Make the list of possible Library_Type values explicit (the
documentation mentions "dynamic").
2022-08-09 12:44:51 +02:00
Nicolas Boulenguez
040e1cc35e projects: explictly qualify as standard or library 2022-08-09 12:44:51 +02:00
Nicolas Boulenguez
d6ac7df083 sqlite: only add C language when sqlite is embedded
The warning about unused language becomes an error when the GPR
library is used directly without gprbuild.
2022-08-09 12:44:11 +02:00
Nicolas Boulenguez
6e04e68d2f sqlite: fix selection of -pthread and/or -sqlite3
Reorder case statements in order to use Sqlite_Lib in a way similar to
the existing Thread_Lib.

When OS /= Windows_NT, GNATCOLL_SQLITE = embedded, LIBRARY_TYPE = relocatable,
Library_Options is now ("-pthread") instead of (),
consistently with Linker'Linker_Options.

When GNATCOLL_SQLITE = external, LIBRARY_TYPE = static,
Library_Options is now () instead of ("-lsqlite3") & Thread_Lib.
These options are intended for the dynamic loader, not the static
archiver (see https://github.com/AdaCore/gnatcoll-db/pull/17).
2022-08-09 12:35:17 +02:00
Nicolas Boulenguez
6c87fb7476 library projects: independent selection of each shared object version 2022-08-09 12:35:10 +02:00
Nicolas Boulenguez
f96aad04cd projects: share settings, inherit build flags, drop unused variables 2022-08-09 12:34:55 +02:00
anisimko
f4a4c46fbb Fix From/Toentity casing issue
no-tn-check

Change-Id: I081a5df36967200f2c258fdd80191cbf59a1667e
2022-05-27 22:12:08 +06:00
anisimko
acc686a58b Remove wrong Unreferenced pragma
New GNAT detect it.

TN: U122-031
Change-Id: I994d98ab9ace012c64d4409c9fb1f8579db3dcd5
2022-01-17 14:31:55 +00:00
Eric Botcazou
3ab81e8c21 Fix ambiguity for "=" operator involving String and Unbounded_String
The usage of the "=" operator with an overloaded left operand with String
and Unbounded_String interpretations and a String right operand is illegal
because it is ambiguous.  This will be diagnosed by an enhanced compiler:

gnatinspect.adb:512:38: error: ambiguous expression (cannot resolve "=")
gnatinspect.adb:512:38: error: possible interpretation at a-strunb.ads:248
gnatinspect.adb:512:38: error: possible interpretation in package Standard
gnatinspect.adb:532:38: error: ambiguous expression (cannot resolve "=")
gnatinspect.adb:532:38: error: possible interpretation at a-strunb.ads:248
gnatinspect.adb:532:38: error: possible interpretation in package Standard

TN: V112-041
Change-Id: I275b5a87e16cc56a842d10af916fd5eeb21e76b6
2022-01-14 13:18:34 +01:00
anisimko
084f41bb8f Avoid new GNAT warning "unnecessary with of ancestor"
no-tn-check

Change-Id: I95664515215590ea5f13bb9d6cf2828dc6a020b6
2021-12-20 15:14:40 +06:00
Vadim Godunko
78596d3bf3 U917-009 Use char_array instead of Standard.String...
... to avoid use of secondary stack for string conversion.

Change-Id: Id7a6a8b124217bcbd87713e7547ce54d009c6a09
2021-10-06 10:33:43 +02:00
Vadim Godunko
b3ab13b58f U917-009 Add test.
Change-Id: I01afd85367c8e5dbc053f0714c6302bd85c72cba
2021-09-20 18:56:26 +02:00
Vadim Godunko
0d8088c9e4 U917-009 Bind RelationNameGetTupleDesc function.
Change-Id: Ibd11a94161a9f1756926dfa4b288cfb01f96179e
2021-09-20 18:56:11 +02:00
Vadim Godunko
5966112703 U917-009 Fix build with current compiler.
Change-Id: I241d2d8d25919df72dfad7c8a4a2afffe69aabe7
2021-09-20 16:03:46 +03:00
Vadim Godunko
e98b78c158 U917-009 Cleanup context clauses.
Change-Id: Iac773fad85482887c88f6c529e39f33a2c4ab55b
2021-09-20 16:03:43 +03:00
anisimko
c75234037f Remove GNAT bug OB03-009 workaround
GNAT Community 2021 does not have this defect already.

TN: U430-004
Change-Id: Ib10b9d209a866daae7eb684f08a79b26d774dc83
2021-06-20 10:00:20 +06:00
Philippe Gil
447297292c minor refactoring to workaround accessibility checks bug.
TN:U430-004
Change-Id: Ib12c81f1c0e555c71d33c05fba3b023e3c514153
2021-05-01 18:36:20 +02:00
Fedor Rybin
33b963c5e4 Make GNATCOLL.SQL Ada 2020 compatible
Qualify the aggregate to fix compilation error in 2020 mode.

for U121-029

Change-Id: I57c0696eb01ca2ab32106c6760099a402e41910d
2021-01-22 11:22:55 +03:00
anisimko
9dadb68f7d GNATCOLL.SQL example
U108-018

Change-Id: Ic2be45cd8fa8457416129c1d0f09720d01a49a97
2021-01-10 16:40:35 +06:00
Dimitri Kokkonis
a8e1615821 Migrate to Sphinx 3.2 and Python 3. T421-010
Change-Id: I6c2a665225e713c9fbecc65014d5ad6bd2b8c68a
2020-12-08 17:17:14 +01:00
anisimko
0819d68de5 Remove unused package references
no-tn-check

GNAT style check became more strict.

Change-Id: I24b59f7b3ffdfa58d8a54b3ede6bfa56fbdcc46d
2020-09-14 11:12:41 +06:00
Fabien Chouteau
5bdd20ae4d gnatcoll_*.gpr: rename external GNATCOLL_BUILD into GNATCOLL_BUILD_MODE
To avoid conflict with installed gnatcoll.gpr where GNATCOLL_BUILD means
library type.

Part of S709-037.

Change-Id: I372b3fc7b35faf14a223465069968ff1e5550250
2020-09-10 18:42:36 +02:00
Fabien Chouteau
d9a2231ff0 gnatcoll_*.gpr: rename all external GNATCOLL_*_BUILD into GNATCOLL_BUILD
To have a unified external for all GNATCOLL project, as discussed for
gnatcoll-db.

Part of S709-037.

Change-Id: I5b6c843df6926288b8906a8c285a6d682394d7bf
2020-08-26 18:38:05 +02:00
Fabien Chouteau
b3a055d835 gnatcoll_*.gpr: introduce the GNATCOLL_*_BUILD external
Like for gnatcoll_core, these externals allow gnatcoll_*.gpr to be used
from a project that defines the BUILD external in an incompatible way.

Part of S709-037.

Change-Id: Ib69453688c4c3ea112aa8b00d3a610bdc2f5426f
2020-07-27 16:56:56 +02:00
Fabien Chouteau
750379af7b gnatcoll_{postgres2ada|postgres|xref}.gpr: unifiy default value for BUILD
Part of T717-016.

Change-Id: Iacf0b56f7c6c1ab4670c8fc5f0fd36963b41dce3
2020-07-17 16:46:39 +02:00