Update all copyright headers to 2012, since the change of the license
is considered as significant for the files.
KC20-003
git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@183039 936e1b1b-40f2-da11-902a-00137254ae57
It is now possible to parse a grammar once, and then use it from different
tasks with different parsers.
Added locking in a few places, and make sure the NFA is not modified while
processing input events.
Added automatic test
K708-021
git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@176524 936e1b1b-40f2-da11-902a-00137254ae57
Byte_Sequence_Access. This removes lots of calls to malloc(), and
provides a better basis for using a NFA to do the validation later
on
On the schematestsuite, we go from 34_026_256 calls to memcpy
down to 24_978_092, and from 27_513_699 calls to malloc down to
21_542_705
J302-043
git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@160132 936e1b1b-40f2-da11-902a-00137254ae57
since they have the following drawbacks:
- less efficient code (each assignment generates extra code)
- a lot more exception handlers, preventing compilation on some machines
(G525-005)
- there are still errors reported by valgrind, in code that is extremely
hard to debug and might in fact be an error in the GNAT runtime itself.
The order of calls to finalize depends on the order in which the types
are declared, and with mutually dependent types this is hard to control
Instead, only the XML_Grammar_NS and Locator are controlled, since they are
the most likely to be used by the user. The grammar takes care of freeing
all needed memory (fixed a lot of memory leaks, as reported in G510-017).
All debug messages are now in a "if Debug" statement, so that we do not have
to use the secondary stack to prepare their argument, often unused. This
also limits memory use somewhat.
There are no remaining known memory leaks when running the schema testsuite
Fixes copyright notices
git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@65659 936e1b1b-40f2-da11-902a-00137254ae57
made ref-counted to fix memory leaks reported in G510-017.
All memory leaks are however not fixed yet, further checkins will
follow.
This version works best with a recent version of GNAT that also
fixes G515-016, or valgrind might report issues in the finalization of
the applications.
Added missing copyright notices
git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/xmlada@62826 936e1b1b-40f2-da11-902a-00137254ae57