188 Commits

Author SHA1 Message Date
Vadim Godunko
9fc5864c69 Disable RPATH generation for libraries. 2026-01-26 12:44:26 +04:00
Vadim Godunko
54aa69c1d8 V921-007 Use short circuite form to follow style.
Change-Id: I394311205fe39abe036c91d8fd97d1b386903d92
2022-09-30 13:17:01 +04:00
Vadim Godunko
788acc5683 V921-007 Check number of items in the list too.
Change-Id: I8908c554ea13a7896d0c63b2b19ec42126c60cb4
2022-09-27 11:04:42 +04:00
Fedor Rybin
de8e3d45e1 Fix cloning of attributes
When cloning nodes, set Owner_Element for attribute nodes.

TN: V811-012
Change-Id: I83d0788b3ecb0a5dc6ce8e1e205ebff584b09de3
2022-08-16 10:57:13 +03:00
Vadim Godunko
1377514177 UC21-016 Reset state of the node returned by Remove_Child.
... to allow to reuse node inside the same document and to avoid dangling
pointers.

Raise exception when node is not found as required by DOM specification.

Change-Id: I46eabf3938afba56a1f5061db6f1b2ded186a6e6
2021-12-22 16:28:48 +03:00
Fabien Chouteau
512a7fc92d Rename shared.gpr into xmlada_shared.gpr
For the same reason as the external variables, shared.gpr can be a
source of conflict between different projects. For instance with AWS.

This change has no impact on the installation since shared.gpr is not
provided in the installation.

Part of T715-030.

Change-Id: Ie0ac01a23c34981b75055fbe8a45db9cc50a581f
2020-08-07 19:30:24 +02:00
Pascal Obry
e5bbafed1e Minor reformatting.
Change-Id: I1d87406224879e4506d9bf8b3f67f8b8b40cfacb
2020-04-24 12:43:32 +02:00
Valentine Reboul
1c7ee7d95d [PA07-083][Q831-010] cleanup of ineffective use-clauses
Change-Id: I351103d11afd53b4c8c264a2e9df9711df8d35a0
2017-09-14 12:41:38 +02:00
Emmanuel Briot
53dc51bf5c Update copyright notices
Change-Id: Iae1283292b460ead48dedc565d6f24259e497e69
2017-01-03 10:02:38 +01:00
Emmanuel Briot
8a9536bf16 Minor doc update to remind that lists must be freed.
P404-033

Change-Id: I2bbe86cd2268a959d5fee4b11d67c69102840552
2016-04-04 22:24:30 +02:00
Emmanuel Briot
1262b6c064 Update copyright headers to 2016
Change-Id: I70135cb5146de304f14587d1a518c94e804a8e6c
2016-02-17 18:02:07 +01:00
Emmanuel Briot
63b47c6599 Reorganize testsuites
Move all the */test/ directories to tests/*
Move all tests that potentially contain customer code or data to tests/adacore
 These will be moved to a separate git repository

Part of O527-038

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@240170 936e1b1b-40f2-da11-902a-00137254ae57
2015-07-09 15:17:03 +02:00
Emmanuel Briot
44bb12c67c The tests can now be run outside of the build directory.
To run the tests, we no longer need to have run "make" first.
Instead, "make test" requires: shared.gpr and the W3C tests, and will
only recompile the sources found in */test/*, not the code of XML/Ada itself.
So will "make run_test".
A new target "run_test_and_setenv" was added for developers who need to
test the local build.

NA17-039

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@233386 936e1b1b-40f2-da11-902a-00137254ae57
2014-10-20 10:03:11 +00:00
Pascal Obry
d214ac70ea Rework the XMLAda build and install procedure.
An aggregate project is now used to build XMLAda. The builder is now
gprbuild and the installation is conducted by gprinstall. This has
permitted a large clean-up of the makefile.

For N403-037.

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@232625 936e1b1b-40f2-da11-902a-00137254ae57
2014-09-24 07:47:03 +00:00
Emmanuel Briot
6b7c44d952 Further fixes when importing and adopting nodes
We were improperly clone some of the properties of the node attributes,
and as a result did not always import all attributes.

Patch suggested by customer
N910-017

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@232345 936e1b1b-40f2-da11-902a-00137254ae57
2014-09-15 14:01:20 +00:00
Emmanuel Briot
ae37073c18 (Import_Node): fix incorrect import of attribute lists
Fix handling of features and known-problems, which were not using
correct versions of XML/Ada releases (refering to 4.4.1 instead of
the more recent 4.4.2).
N910-017

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@232255 936e1b1b-40f2-da11-902a-00137254ae57
2014-09-11 10:10:49 +00:00
Emmanuel Briot
101d8168bc Build with gprbuild, since 'gnatmake -P' is being phased out.
N715-032

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@230603 936e1b1b-40f2-da11-902a-00137254ae57
2014-07-17 09:03:15 +00:00
Emmanuel Briot
d5662a6efc (Import_Node, Adopt_Node): new subprograms
These subprograms, part of DOM level 2 and level 3, are now implemented.
(Append_Child): now raises an exception when the new node is not part of
 the same document.
These new subrograms make it possible to move or copy nodes from one
 document to another. So far it was possible to do this via calls to
 Append_Child, but this resulted in invalid memory access when one of
 the documents was freed.
N411-012

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@227165 936e1b1b-40f2-da11-902a-00137254ae57
2014-05-06 15:08:26 +00:00
Emmanuel Briot
1a9ac88f45 (Child_Nodes): clarify documentation, from N311-024
git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@224468 936e1b1b-40f2-da11-902a-00137254ae57
2014-03-12 11:02:06 +00:00
Emmanuel Briot
b3329cfb37 Remove mention of license in README, not appropriate for GPL release
N301-011

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@223970 936e1b1b-40f2-da11-902a-00137254ae57
2014-03-03 13:54:28 +00:00
Emmanuel Briot
67fb7dd10e Update copyright notices to 2014
N103-019

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@221486 936e1b1b-40f2-da11-902a-00137254ae57
2014-01-06 10:27:30 +00:00
Emmanuel Briot
1971b31ba1 (Clone_Nodes): fix implementation of deep cloning
part of MB20-045

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@219701 936e1b1b-40f2-da11-902a-00137254ae57
2013-11-21 15:53:49 +00:00
Emmanuel Briot
b531cd91e8 (Utf8_Next_Char, Utf8_Length, Utf8_Prev_Char, Utf8_Get_Char,
Utf8_Find_Next_Char): new subprograms
(Is_Valid_Name_Char, Is_Valid_Name_Startchar): minor optimization by
 using lookup tables.
MA08-027 and MA04-050

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@216794 936e1b1b-40f2-da11-902a-00137254ae57
2013-10-08 13:49:30 +00:00
Emmanuel Briot
8f2f2f834c Add missing file from previous check in.
M805-006

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@214501 936e1b1b-40f2-da11-902a-00137254ae57
2013-08-21 13:17:36 +00:00
Emmanuel Briot
504d44e571 Add documentation on how to store location along with the DOM nodes.
M805-006

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@214499 936e1b1b-40f2-da11-902a-00137254ae57
2013-08-21 13:14:41 +00:00