Commit Graph

30608 Commits

Author SHA1 Message Date
michael
04f1614e0b * Patch from Inoussa OUEDRAOGO to support int64 numbers
git-svn-id: trunk@13358 -
2009-07-03 06:38:18 +00:00
sergei
fcd96805fa htmldefs.pp:
+ Define elements which may omit end-tag (except HTML, HEAD and BODY which may also omit the start-tag)
+ Define which elements may close other elements (modelled after libxml2).
* DIV may have #PCDATA content.

sax_html.pp:
* Improve the parser to report startElement/endElement events properly. Should resolve Mantis #14073 and related element hierarchy issues.

git-svn-id: trunk@13357 -
2009-07-02 23:13:44 +00:00
florian
8c7f6fb7ac + more register definitions by Seppo Suutarla
* all registers use now th AT91C_ prefix

git-svn-id: trunk@13356 -
2009-07-02 17:50:13 +00:00
sergei
5f45dd409b SAX readers: never transition from scText to scWhitespace state, and don't reset token while transitioning from scWhitespace to scText. This ensures that only pure-whitespace chunks are ever reported via IgnorableWhitespace event, and that text nodes are not broken into words.
This provides a partial fix for Mantis #14073.

git-svn-id: trunk@13355 -
2009-07-01 22:00:22 +00:00
sergei
ccb730c051 *HTML writer: change charset in 'meta' tag (if any) to utf-8, because it is the encoding we actually write.
git-svn-id: trunk@13354 -
2009-07-01 16:02:46 +00:00
florian
67cb961ed3 * only x86 and m68k need treference.segment
git-svn-id: trunk@13353 -
2009-06-29 21:12:45 +00:00
florian
6898b10e2e * fixed order of cgloc2str strings
git-svn-id: trunk@13352 -
2009-06-29 19:27:51 +00:00
sergei
a8e6f79ef3 * SAX parsers: support hexadecimal notation in character references and return result in a SAXChar
instead of Char, provides a partial fix for #14074

git-svn-id: trunk@13351 -
2009-06-29 14:20:50 +00:00
michael
cfffcd3ba8 * Fix in read/write visitor registration. Added override of read/readthis/save
git-svn-id: trunk@13347 -
2009-06-28 12:38:24 +00:00
michael
dfc188bca2 * Added option to register visitors
git-svn-id: trunk@13346 -
2009-06-28 11:02:06 +00:00
michael
f8fc8077b0 * Saving/Loading and generating SQL for foreign keys now works
git-svn-id: trunk@13345 -
2009-06-28 10:27:05 +00:00
Jonas Maebe
d6aa5bfe36 + test for mantis #10717
git-svn-id: trunk@13344 -
2009-06-28 09:15:39 +00:00
Jonas Maebe
ae476a9b6a * part of r13334, forgot to commit
git-svn-id: trunk@13343 -
2009-06-28 07:44:02 +00:00
florian
60169d34dc * fixed compilation of AVR compiler
git-svn-id: trunk@13342 -
2009-06-27 19:31:24 +00:00
florian
86aad85b78 + section smartlink bss for embedded targets
git-svn-id: trunk@13341 -
2009-06-27 15:21:01 +00:00
marco
10c67a4ad5 * fields after objects methods.
git-svn-id: trunk@13340 -
2009-06-27 14:06:58 +00:00
michael
c7ca0f8b0f * Possibility to specify character set in connection dialog
git-svn-id: trunk@13339 -
2009-06-27 14:03:32 +00:00
michael
2379ea463b * Fixed typo
git-svn-id: trunk@13338 -
2009-06-27 13:51:16 +00:00
marco
91009ca615 * fixes for fields after classes also apply to TP objects. Fixed.
git-svn-id: trunk@13337 -
2009-06-27 13:45:33 +00:00
marco
3ffd12f9fb * breakage due to fields after methods change fixed.
git-svn-id: trunk@13336 -
2009-06-27 13:43:50 +00:00
michael
8540633503 * Fixed service description
git-svn-id: trunk@13335 -
2009-06-27 13:32:58 +00:00
Jonas Maebe
c6733ed9a5 * disallow placing fields after method/property definitions, because this
can create ambiguities for the parser in case the field names also exist
    as modifiers (TP- and Delphi-compatible, mantis #13971) + tests
  * fixed tests that broke because of this change

git-svn-id: trunk@13334 -
2009-06-27 12:59:46 +00:00
Jonas Maebe
be43cec33a * enable cross-compiling from x86_64 platforms that support the extended
type to i386

git-svn-id: trunk@13333 -
2009-06-27 12:54:56 +00:00
florian
77eca3a492 * setup stacks properly
git-svn-id: trunk@13332 -
2009-06-27 12:53:57 +00:00
marco
b17cfcabc6 * patch from Ido to add error detection to iconvert's flush statement, since
that can also overflow. (mantis 13896)

git-svn-id: trunk@13331 -
2009-06-27 11:58:02 +00:00
Jonas Maebe
1f6ec379de * moved field definitions before method/property definitions (see mantis
#13971)

git-svn-id: trunk@13330 -
2009-06-27 11:27:31 +00:00
Jonas Maebe
c62d6f9a0b * regenerated (depends on fcl-base, which depends on univint since
r12921)

git-svn-id: trunk@13329 -
2009-06-27 11:24:56 +00:00
Jonas Maebe
9c280eae26 * fixed range error introduced in r13213
git-svn-id: trunk@13328 -
2009-06-27 11:20:30 +00:00
florian
fc5e5d9258 * talignmentinfo must be packed, it is written to the ppu during streaming, further it is member of tsettings which packed too
* reordered fields of tsetting to avoid unaligned fields
* fixed compilation of arm after disableddircache was added
* increased ppu version

git-svn-id: trunk@13327 -
2009-06-27 11:14:19 +00:00
Jonas Maebe
e42842b31c * don't allow skipping property parameters if the getter/setter has default
parameters (mantis #13956)
  * when reporting an error about too few specified parameters to a call,
    return the column of the call itself rather than after the last parameter
    (because this ends up after the end of an indexed property in case of
     properties, which is confusing)

git-svn-id: trunk@13326 -
2009-06-26 17:31:41 +00:00
Jonas Maebe
5c006b9b86 * enable the directory cache by default starting with the first lookup
(fixes mantis #13756)
  + added -Fd command line parameter to disable the directory cache

git-svn-id: trunk@13325 -
2009-06-26 14:55:31 +00:00
ivost
c35347a50e * added MYSQL_TIME type
git-svn-id: trunk@13324 -
2009-06-26 12:26:03 +00:00
Jonas Maebe
77feb9d45c * fixed setstrprop() for shortstring properties (based on hint by Zawullon,
mantis #14040)

git-svn-id: trunk@13323 -
2009-06-26 11:34:04 +00:00
sergei
106a605e05 xpath.pp:
- Removed (made abstract) default implementations of TXPathVariable.AsText(), AsNumber() and
  AsBoolean(). These methods are overriden by all TXPathVariable descendants, therefore in
  TXPathVariable itself they are dead and only increase executable size.
- Removed debug statement committed by accident in r13256.

tests/xpathts.pp:
* Annotated some tests, added a few tests for name(), namespace-uri() and local-name().

git-svn-id: trunk@13322 -
2009-06-24 19:16:33 +00:00
sergei
986dfd01fb xmlread.pp:
+ Character count checks for parameter entities, protects against entity expansion attacks using PE's.
+ Cache external PE's so they are only fetched once, considerably reduces traffic and CPU load in
  case of attack.
* Do not repeat attempts to read from input stream once the read operation has returned less bytes
  than requested.

git-svn-id: trunk@13321 -
2009-06-23 22:46:26 +00:00
Jonas Maebe
b7235b21c9 * no longer allow assigning values to typecasted properties, because in
case the getter is a function, the result is that first the getter is
    called, and subsequently the temp holding the function result is
    overwritten (thus not changing anything). This is Delphi-compatible,
    and fixes tests/tbf/tb0214*

git-svn-id: trunk@13320 -
2009-06-23 18:42:53 +00:00
Jonas Maebe
77a3e52caf - disabled fastcgi, custfcgi, and fpfcgi units for Darwin because they do
not work there (they will raise SIGPIPE signals when socket errors occur,
    needs to be fixed by using the SO_NOSIGPIPE option when creating the
    sockets; see http://wiki.freepascal.org/fcl-web for more info)

git-svn-id: trunk@13319 -
2009-06-23 14:10:04 +00:00
dmitry
4784948a75 objcrtlutils: added SELectors caching for alloc, init and release methods
git-svn-id: trunk@13318 -
2009-06-23 05:52:22 +00:00
paul
68d937d120 gtk2: declare missed gdk window states
git-svn-id: trunk@13317 -
2009-06-23 01:36:29 +00:00
florian
2574851942 * ppu format change, ppu version increased
git-svn-id: trunk@13316 -
2009-06-22 21:49:39 +00:00
florian
121875a374 * make TSettings packed so ppus containing generics are compatible regardless which compiler generated them
git-svn-id: trunk@13315 -
2009-06-22 21:45:06 +00:00
florian
2a683bff43 * make msg was not executed after rev. 13287
git-svn-id: trunk@13314 -
2009-06-22 20:49:44 +00:00
sergei
09867a1f6e xmlread.pp:
+ New option TDOMParseOptions.DisallowDoctype - prohibits processing of the DTD (specs compliant,
  targeted for SOAP applications).
+ New option TDOMParseOptions.MaxChars - limits max document length, protects against entity
  expansion attacks and DoS by feeding in too long documents. Default value of 0 means no
  restrictions. Tested with internal and external general entities, TBD with parameter entities.
* Fixed calculation of URIs used to retrieve external entities, they should be evaluated at the
  point of entity declaration rather than at the point of resolving (which happens at the first
  inclusion). 
dom.pp:
* TDOMNode.SetReadOnly, calling Attributes was causing creation of TAttributeMap on every element.
  Fixed.

git-svn-id: trunk@13313 -
2009-06-22 19:57:11 +00:00
florian
c21d5765ac * fixed properties
git-svn-id: trunk@13312 -
2009-06-22 18:55:28 +00:00
florian
a7ab3d336e + first at91sam7x256 unit
* irq handlers for lpc21x4 fixed

git-svn-id: trunk@13311 -
2009-06-22 10:31:37 +00:00
Jonas Maebe
c0e51f3e97 * use reference-counted temps for the method pointer when the method
pointer is of a reference-counted type (reverts r2165, fixes mantis #14019)
  * modified test for mantis #4086 (which was "fixed" by r2165) so it still
    works and no longer depends on whether or not the compiler uses a
    refcounted temp to evaluate certain expressions

git-svn-id: trunk@13310 -
2009-06-21 12:17:51 +00:00
Jonas Maebe
089ff79c3b + test I forgot to commit earlier
git-svn-id: trunk@13309 -
2009-06-21 12:14:14 +00:00
Jonas Maebe
fce899388f + add cardinal test
git-svn-id: trunk@13308 -
2009-06-21 11:59:50 +00:00
Jonas Maebe
25463000ac * do not mark all found files with Find* as "faHidden" if the search path
starts with './' (mantis #14020)
  * also mark files whose name starts with '.' that are found in subdirectories
    as faHidden (not reported, but was due to a similar error)
  - removed some unused variables related to the Find* functionality

git-svn-id: trunk@13307 -
2009-06-21 10:21:06 +00:00
Jonas Maebe
eb41269746 * fixed test (it also crashed when compiled with Kylix)
git-svn-id: trunk@13306 -
2009-06-21 08:49:00 +00:00