tom_at_work
9428c78d63
Pass OPT to compilation of fpmake.
...
Solves issues with systems that e.g. require special options for compilation of programs (e.g. libc programs to find libc startup code) or the actual build has been compiled with options that are incompatible with default ones.
Tested changes by building an i386-linux local build and i386-linux->arm-linux cross-builds
git-svn-id: trunk@22397 -
2012-09-15 23:41:44 +00:00
tom_at_work
7c56a9f34d
Revert r22080 because it prevents crosscompilation.
...
git-svn-id: trunk@22101 -
2012-08-16 21:24:47 +00:00
tom_at_work
7b6bcd315f
Pass FPCOPT to fpmkunit and fpmake compilation. This prevents build errors of these programs if the given FPCOPT options of the previously compiled RTL are incompatible to default options. Regenerated associated makefiles.
...
git-svn-id: trunk@22080 -
2012-08-14 19:09:17 +00:00
sergei
e41a365f59
* Changed 'var' parameters to 'out' in order to avoid warnings (Mantis #22136 )
...
git-svn-id: trunk@21452 -
2012-06-01 19:57:28 +00:00
sergei
c628942e15
* Fixed compilation with -CR
...
git-svn-id: trunk@21298 -
2012-05-15 08:45:38 +00:00
sergei
c61c192c23
* Fixed class cast error (THTMLDocument is not a descendant of THTMLCustomElement).
...
git-svn-id: trunk@21292 -
2012-05-14 13:28:52 +00:00
pierre
1b3fd997fc
+ Regenerate all Makefiles's after adding x86_64 netbsd target
...
git-svn-id: trunk@21031 -
2012-04-24 23:15:18 +00:00
sergei
12a4e1a37d
* xmlwrite.pp, continuing with streaming API:
...
* Factored WriteStartElement, WriteEndElement and WriteXmlDecl into separate procedures
* Handle element names independent from DOM.
git-svn-id: trunk@20949 -
2012-04-21 01:16:48 +00:00
sergei
901eb84b3d
* xmlwrite.pp, started implementing the streaming API.
...
git-svn-id: trunk@20924 -
2012-04-19 00:21:55 +00:00
sergei
86f0a4177d
* SAX cleanup: removed {$ifdef UseDynArrays}, left variant without dynarrays, they don't provide any significant advantage.
...
* Changed TList to TFPList, removed redundant FLength field.
git-svn-id: trunk@20879 -
2012-04-14 22:44:45 +00:00
sergei
931a0f159c
- Removed xmltextreader.TXMLReadState definition, it clashes with one from xmlreader.pp (this was not significant while the entire TXMLTextReader class was implementation-only).
...
git-svn-id: trunk@20873 -
2012-04-14 18:04:55 +00:00
sergei
18079355f5
* fcl-xml, going public with TXMLTextReader: moved most of the code from xmlread.pp to new unit xmltextreader.pp, auxiliary classes moved to xmlreader.pp.
...
git-svn-id: trunk@20868 -
2012-04-14 17:25:40 +00:00
sergei
ed9146f918
* Simplified CheckName() a bit.
...
* Replaced some checks for terminating #0 with checks against buffer end address.
* Fixed mistake in GetLocalName(), was referring to wrong FColonPos.
* Moved parsing PE references into StartPE, reduces code duplication.
git-svn-id: trunk@20856 -
2012-04-12 21:43:51 +00:00
Jonas Maebe
135565e951
* enabled for AIX
...
git-svn-id: trunk@20851 -
2012-04-11 18:07:23 +00:00
Jonas Maebe
44bd889b9b
* regenerated Makefiles with AIX support
...
git-svn-id: trunk@20812 -
2012-04-11 18:03:57 +00:00
sergei
91f770d774
+ TXmlReader.NameTable public property
...
+ report SystemID and PublicID of DTD as attributes
git-svn-id: trunk@20785 -
2012-04-11 16:36:13 +00:00
sergei
bed154d366
* Modified helper TLoader class to access reader node data via an interface, instead of using fields directly.
...
git-svn-id: trunk@20777 -
2012-04-09 22:10:29 +00:00
sergei
69ca1accde
* Added NameTable property to TXMLReaderSettings
...
* Removed redundant ANameTable parameters from some TXMLTextReader constructors
* TDOMParser.ParseWithContext: fixed accessing the document (it may be the context node itself)
git-svn-id: trunk@20769 -
2012-04-08 22:46:41 +00:00
sergei
67d6e8d6af
* When parsing end-tags, compare input with element name from start-tag directly, without calling CheckName (performance).
...
git-svn-id: trunk@20748 -
2012-04-07 17:02:41 +00:00
pierre
2c4d8cc9d9
Add x86_64-openbsd target in Makefiles
...
git-svn-id: trunk@20723 -
2012-04-06 16:49:08 +00:00
sergei
da5740142e
* Small improvement to parameter entity nesting checks.
...
git-svn-id: trunk@20722 -
2012-04-06 16:31:48 +00:00
sergei
cc3023d55d
* Renamed TDOMParseOptions to TXMLReaderSettings (TDOMParseOptions left as alias).
...
- ResolveExternals option removed, it never actually worked and its functionality should be implemented by means of OnResolveEntity event.
* Moved OnError handler from TDOMParser to TXMLReaderSettings, TDOMParser.OnError redirected to set Options.OnError.
* TDOMParser replaced by TXMLReaderSettings in parameters of TXMLTextReader constructors.
git-svn-id: trunk@20708 -
2012-04-05 13:38:32 +00:00
sergei
69802878c6
* xmlread.pp, changed constructor using TXMLCharSource into two constructors using TStream and Text, in order to simplify the upcoming public usage of this class.
...
git-svn-id: trunk@20698 -
2012-04-03 18:02:27 +00:00
sergei
dfec10d430
* Renamed TXMLCharSource.SystemID to SourceURI to better reflect its purpose (System ID should typically be combined with Base URI to get the full URI for the given resource).
...
git-svn-id: trunk@20687 -
2012-04-01 20:44:32 +00:00
sergei
9525abb330
* Simplified TXMLTextReader.ReadTopLevel() a bit.
...
git-svn-id: trunk@20686 -
2012-04-01 19:16:16 +00:00
sergei
c815a8d040
* Changed entity handling to use a callback, makes TXmlTextReader class completely independent from the DOM stuff.
...
git-svn-id: trunk@20681 -
2012-03-31 16:07:38 +00:00
sergei
c060466fb8
* Fixed WriteXML() for non-document nodes after r20538, Mantis #21609
...
git-svn-id: trunk@20678 -
2012-03-30 18:06:03 +00:00
sergei
bab72f0025
* xmlread.pp, fixed skipping DTD in canonical mode: ReadTopLevel was not recurring, but exiting with undefined result (happened to be 'true' most of the time). This went unnoticed due to redundant check in TLoader.ParseContent.
...
git-svn-id: trunk@20645 -
2012-03-28 10:42:45 +00:00
sergei
804e9cd09d
xmlread.pp:
...
* reduced duplication in entity handling code.
* fixed reported boundary locations for entities in content.
git-svn-id: trunk@20638 -
2012-03-27 08:13:20 +00:00
sergei
3d1b4b1b63
* Added a typecast to avoid range error in 64-bit debug builds
...
git-svn-id: trunk@20596 -
2012-03-23 13:48:34 +00:00
sergei
d12456c55d
* Fixed syntax error which I managed to commit in r20558 (Mantis #21524 )
...
git-svn-id: trunk@20569 -
2012-03-22 09:52:28 +00:00
sergei
c7259969ce
+ fcl-xml, implemented TDOMNode.BaseURI property.
...
* Moved element loading procedure from xmlread.pp to dom.pp, speeds things up a bit.
git-svn-id: trunk@20558 -
2012-03-21 22:19:27 +00:00
sergei
5618efc7a4
* fcl-xml, reduced DOM memory requirements by getting rid of TDOMNode_WithChildren.FLastChild field (storing the last child in FFirstChild.FPreviousSibling instead).
...
git-svn-id: trunk@20539 -
2012-03-18 20:33:51 +00:00
sergei
60fe15b01a
* fcl-xml, improved TNSSupport class to work directly with hashed strings, reduces amount of hash lookups.
...
git-svn-id: trunk@20538 -
2012-03-18 19:56:07 +00:00
sergei
c2a2f88bd4
* fcl-xml, making progress with streaming API, implemented IXmlLineInfo interface and fixed reported locations for attributes and their child nodes.
...
+ Set Name and Value properties for DocumentType nodes.
* Unified HandleEntityStart and HandleEntityEnd code for entity references in content and in attributes.
git-svn-id: trunk@20524 -
2012-03-16 09:14:47 +00:00
sergei
c1531f5c12
* fcl-xml, moved syntax validation procedure from TXMLTextReader to TAttributeDef
...
* reduced memory requirements by getting rid of FAttrChunks and creating FForwardRefs on demand.
git-svn-id: trunk@20523 -
2012-03-16 08:52:03 +00:00
sergei
eabc0cb53a
* fcl-xml, making progress with streaming API, implemented a few more methods.
...
git-svn-id: trunk@20474 -
2012-03-05 14:38:05 +00:00
sergei
a417e9d0b6
* fcl-xml, making progress with streaming API, moved DOM-dependent stuff from TXMLTextReader to the TLoader helper object. Now TXMLTextReader class is almost free from direct DOM dependencies (indirect ones like TDOMParser are still present, also entity handling is still intertwined too closely).
...
git-svn-id: trunk@20467 -
2012-03-03 12:26:52 +00:00
sergei
134e5167f1
* fcl-xml testing suite, working around excessive string conversions by using new method assertEqualsW to compare wide strings. Since TTestCase.assertEquals method already exists with ansistring arguments, and its first argument is a literal in most cases, overloading does not help here.
...
git-svn-id: trunk@20442 -
2012-02-29 09:28:03 +00:00
sergei
9e091cc15f
* fcl-xml, more WideString replacements
...
git-svn-id: trunk@20440 -
2012-02-28 13:01:41 +00:00
sergei
5c2faa4a61
+ fcl-xml, making progress with streaming API, added most method implementations.
...
git-svn-id: trunk@20438 -
2012-02-27 11:34:25 +00:00
sergei
997538dd41
+ fcl-xml, added unit xmlreader.pp (abstract base for streamed reading)
...
git-svn-id: trunk@20437 -
2012-02-27 11:02:34 +00:00
sergei
f9f6344d3a
* Moved standard namespace URIs from dom.pp to xmlutils.pp
...
* Renamed another occurrence of PWideString to PXMLString
git-svn-id: trunk@20436 -
2012-02-27 07:28:34 +00:00
sergei
f44734d1bc
* fcl-xml, moved check for required attribute presence to ValidateCurrentNode
...
* improved wording of some validation errors
- removed ExpectName function
git-svn-id: trunk@20435 -
2012-02-27 04:03:09 +00:00
sergei
ede4da62cb
* fcl-xml, track attribute definition tags in reader instead of DTD. Removes need for multiple parsers processing documents based on the same DTD to keep their attribute tag counters in sync.
...
git-svn-id: trunk@20429 -
2012-02-25 22:13:51 +00:00
sergei
6adf381867
* fcl-xml, upgrade to comply with XML 1.0 Fifth Edition. This makes naming rules for xml 1.0 identical to ones for xml 1.1.
...
git-svn-id: trunk@20422 -
2012-02-24 06:25:32 +00:00
sergei
0cd9e7fee9
+ procedure BufAppendString(TWideCharBuf,XMLString) for convenience
...
- removed {$ifdef fpc}, CompareMem is no longer slower than CompareWord, so it can be used always.
git-svn-id: trunk@20417 -
2012-02-23 21:36:31 +00:00
sergei
2d981def2c
* improved handling of attribute value chunks
...
* cleaned up several redundant method arguments and conditions
git-svn-id: trunk@20415 -
2012-02-23 20:53:25 +00:00
sergei
5be3f57549
- fcl-xml, removed stuff which was deprecated in 2.6.
...
git-svn-id: trunk@20406 -
2012-02-22 22:23:36 +00:00
sergei
042f5264bb
* fcl-xml, replacing more occurrences of WideString with XMLString.
...
git-svn-id: trunk@20396 -
2012-02-22 15:50:40 +00:00