Commit Graph

30237 Commits

Author SHA1 Message Date
Jonas Maebe
5db78d185f * disable fpu test for all softfpu platforms, not only for WinCE
git-svn-id: trunk@13072 -
2009-05-01 12:55:03 +00:00
Jonas Maebe
fe65ee6058 + darwin/arm support for fcl-res and fpcres
git-svn-id: trunk@13071 -
2009-05-01 12:47:01 +00:00
Jonas Maebe
7885f6c892 * give a generic "type mismatch" error if copy() is called with less than
3 parameters and none of the valid cases apply (mantis #13625)

git-svn-id: trunk@13070 -
2009-05-01 11:40:02 +00:00
Jonas Maebe
d6f3ecc9fc * fixed definition of ino_t (64 instead of 32 bit) and of stat record
(slightly different order of fields) for darwin/arm

git-svn-id: trunk@13069 -
2009-05-01 11:18:18 +00:00
Jonas Maebe
844e0d04ba * to determine the alignment of arrays of orddef, enumdef and floatdef,
use the alignment of these elements rather than their size (fixes
    alignment of arrays of int64/qword/double on darwin/i386 and darwin/arm)

git-svn-id: trunk@13068 -
2009-05-01 11:15:31 +00:00
Jonas Maebe
69198e95f9 + darwin/x86_64 test object files
git-svn-id: trunk@13067 -
2009-05-01 11:10:30 +00:00
Jonas Maebe
afab9fb99c * force utf-8 on iPhoneOS, because locale settings are absent/ignored there
git-svn-id: trunk@13066 -
2009-05-01 09:19:53 +00:00
joost
c0d3aee0fb * Fork a Daemon into the background when the -b option is supplied, bug #13078
git-svn-id: trunk@13065 -
2009-04-30 16:34:37 +00:00
marco
1c3daf1568 * htmlindexer can use generics Red black tree (for testing, under ifdef)
* some fixes to chm debug statements in chmreader

git-svn-id: trunk@13064 -
2009-04-30 15:37:22 +00:00
Jonas Maebe
2635212ebc * fixed warnings and removed unused "Current_moduleIndex" global variable
(patch by Alexander S. Klenin, mantis #13618)

git-svn-id: trunk@13063 -
2009-04-30 15:32:28 +00:00
joost
6e72451e63 * Implemented TResponse.CustomHeaders, patch from Atilla Borka, part of bug #13254
git-svn-id: trunk@13062 -
2009-04-30 14:43:54 +00:00
Jonas Maebe
a5376cbdff + test for mantis bug #13622 (already works with 2.3.1)
git-svn-id: trunk@13061 -
2009-04-30 09:11:37 +00:00
sergei
e17ac308e0 Implementation of XPath function lang() + tests.
git-svn-id: trunk@13060 -
2009-04-29 17:52:39 +00:00
joost
1c8d79c57f * On shutdown, always terminate the TDaemonThread, not only in case of an exception
git-svn-id: trunk@13059 -
2009-04-29 13:52:54 +00:00
michael
31e0852c4b * Patch from Graeme Geldenhuys to supply formatting for definition lists
git-svn-id: trunk@13058 -
2009-04-29 10:41:57 +00:00
marco
7945af2f85 * canvas clipping getters and setters virtual, as per mantis 13607
git-svn-id: trunk@13057 -
2009-04-29 09:06:29 +00:00
sergei
841625e3dd Refactoring, no functional changes
xmlread.pp:
* Moved assignment of TXMLFileInputSource.SystemID into TXMLInputFileSource.Create.
* Eliminated nested procedure in TXMLReader.ProcessDefaultAttributes, it was redundant since
  r12026.

xpath.pp:
* Moved predicate evaluation code, which is common for filter and step nodes, into
  TXPathExprNode.EvalPredicate().

git-svn-id: trunk@13056 -
2009-04-28 19:35:07 +00:00
sergei
efcccbf895 Test suite improvements, targeted to support the HTML suite:
domunit.pp:
+ Added AssertEqualsNoCase() method.
* TDOMTestBase.Load chaned doc argument to untyped, because some tests use TDOMNode instead of a
  TDOMDocument.
* Completed the URIEquals() method; changed parameter types to PChar in order to be able to
  distinguish nil from empty string.
* Modified GetResourceURI method so it is capable to handle the directory structure of CVS
  snapshot (level2/html using data files from level1/html).

testgen.pp:
* Counterparts to changes in domunit.pp
+ Support for renaming APIs (e.g. 'type'->'htmlType')
+ Support for enforcing the correct type of function arguments (emits 'as' operator).

api.xml:
+ Added data for DOM Level3 XPath and Level2 HTML suites.

git-svn-id: trunk@13055 -
2009-04-28 19:18:07 +00:00
Jonas Maebe
79c70c52a7 * store/restore taddnode.resultrealdef to/from the ppufiles, and also
copy/compare it when copying/comparing taddnodes (necessary for inlined
    procedures, mantis #13596)

git-svn-id: trunk@13054 -
2009-04-27 21:03:11 +00:00
joost
272cd13af6 * Write exception to console when no response is initialized
git-svn-id: trunk@13053 -
2009-04-27 19:52:58 +00:00
Jonas Maebe
8cae53bb18 * fixed errors with parsing negative, >$99 and invalid BCD numbers in
BCDToInt() (patch from Milla, mantis #13512)

git-svn-id: trunk@13052 -
2009-04-27 16:46:42 +00:00
Vincent Snijders
2b780dbad4 * fixed typo in comment
git-svn-id: trunk@13051 -
2009-04-27 10:25:37 +00:00
Jonas Maebe
5b08047d1c * allow exlicit type conversions from class/interface to enums in Delphi
mode (mantis #11859)
  * cleaned up some superfluous "eq=te_incompatible" checks (probably from
    copy/pasting conditions from elsewhere)

git-svn-id: trunk@13050 -
2009-04-26 20:41:24 +00:00
joost
25c5d2658c * Reverted work-around from r12744 now bug #12985 is fixed
git-svn-id: trunk@13049 -
2009-04-26 20:17:14 +00:00
sergei
e75bad33e4 Applied a fix similar to r13047:
* Handle empty tags by emitting a pair of StartElement/EndElement
  events. While this is optional in HTML parser, here in XML parser it is a requirement.

git-svn-id: trunk@13048 -
2009-04-26 18:11:03 +00:00
sergei
b9ad8e3755 * Handle xml/xhtml style empty tags by emitting a pair of StartElement/EndElement events with
correct tag name.

Slightly modified patch from Marco van de Voort, resolves #13409.

git-svn-id: trunk@13047 -
2009-04-26 17:56:21 +00:00
sergei
b02aededf8 More progress with XPath:
src/xpath.pp:

+ Implemented sum() and normalize-space() core functions.
* Rewrote comparison code, nodesets are now handled correctly (to the
  extent of the tests which I could find).
* starts-with() and contains() return True when second argument is an
  empty string - that differs from Pos() behavior.
* NaNs are propagated through mod operator, floor() and ceiling().
* Fixed memory leak caused by not releasing arguments after function
  calls.
* string-value of a nodeset is the value of its first node, not all
  nodes glued together.

tests/xpathts.pp:

+ Added 120 tests, most coming from OASIS Prototype XSLT/XPath 1.0
  conformance test suite.
+ Tests can now take an input xml data as a string.

git-svn-id: trunk@13046 -
2009-04-26 16:06:15 +00:00
Jonas Maebe
58f4f7829c * don't replace the vmt entries of unused published virtual methods with
references to FPC_ABSTRACTERROR when using -Owoptvmts, since these can
    also be called via rtti

git-svn-id: trunk@13045 -
2009-04-26 09:42:33 +00:00
joost
17e322cf57 * Set FBufferCount to -1 instead of 0 when there are no buffers initialized. Bug #13539
git-svn-id: trunk@13044 -
2009-04-25 20:33:18 +00:00
florian
80c0f33c0e * patch by Sergei Gorelkin: fixes compilation with -dEXTDEBUG
git-svn-id: trunk@13043 -
2009-04-25 20:02:08 +00:00
Jonas Maebe
e2b8792bd3 * do not initialize global reference-counted variables in the automatic
initialization code of units/programs, because they are already
    zero and initializing them explicitly is Delphi-incompatible
    (mantis #13345)

git-svn-id: trunk@13042 -
2009-04-25 18:53:58 +00:00
Jonas Maebe
90b2d673df * fixed opt/cpu settings for test
git-svn-id: trunk@13041 -
2009-04-25 18:52:00 +00:00
Jonas Maebe
ca132e203f * treat typecast(register) the same as typecast([register]) in assembler
expressions (for Delphi compatibility, mantis #9327)

git-svn-id: trunk@13040 -
2009-04-25 15:37:38 +00:00
joost
1bf74a426b * Fixed typo in r13026, could should not be commented
git-svn-id: trunk@13039 -
2009-04-25 15:22:02 +00:00
marco
704c0adbd0 * iconvenc now also with dynlinking separate. Some fixes for OS X 10.3 and Haiku ported from cwstring
git-svn-id: trunk@13038 -
2009-04-25 12:10:42 +00:00
Jonas Maebe
dbeb3e060f * fixed internalerror(2007120903) when using -Cfsse2 in case an unsigned
32 bit subrange type with high(subrange_type) <= high(longint) is
    converted to a float

git-svn-id: trunk@13037 -
2009-04-25 11:40:02 +00:00
Jonas Maebe
533f533868 * changed destination parameter of getmem/getmemory from "var" to "out"
(mantis #11907)

git-svn-id: trunk@13036 -
2009-04-25 09:57:29 +00:00
Jonas Maebe
4771ca3ce1 * import iconv functions as libiconv_* instead of as iconv_* for ppc32
for Mac OS X 10.3 compatibility

git-svn-id: trunk@13035 -
2009-04-25 09:34:11 +00:00
Jonas Maebe
045ae3ab69 o fixed r13033:
* test now tests both ansistring and widestring constants, instead of only
     ansistring
   * fixed writing of widestring constants to ppu file
   * fixed setting length of read widestring constants (don't only set maxlen)
   * handle cross-endian reading of widestring constants

git-svn-id: trunk@13034 -
2009-04-24 22:29:05 +00:00
Jonas Maebe
37a2cff8fb * fixed loading widestring constsym values from ppu files (mantis #13583)
* null-terminate loaded ansistring/resourcestring constants from ppu files

git-svn-id: trunk@13033 -
2009-04-24 21:36:01 +00:00
Jonas Maebe
f9a17c47bd * write output to screen if log file(s) cannot be opened (mantis #12532)
git-svn-id: trunk@13032 -
2009-04-24 13:28:06 +00:00
Jonas Maebe
8de8d4c29b * don't call FPC_CHECKPOINTER for references built from a LOC_CONSTANT
(mantis #13522)

git-svn-id: trunk@13031 -
2009-04-24 13:08:39 +00:00
Jonas Maebe
a6f20cdba9 * align the stack pointer to alignment.localalignmax, fixes crashes on
ARM EABI systems because of a missing 8 byte alignment (mantis
    #11595, #13391 and #13454)

git-svn-id: trunk@13030 -
2009-04-24 12:35:26 +00:00
Jonas Maebe
1ad1eac9e8 * use monetary thousands separator if numerical thousands separator is #0
(mantis #13552, patch by Jesus Reyes)

git-svn-id: trunk@13029 -
2009-04-23 19:17:37 +00:00
Jonas Maebe
e8edc31a89 * don't insert thousandseparator if it is #0 (mantis #13552, patch by
Jesus Reyes)

git-svn-id: trunk@13028 -
2009-04-23 19:16:49 +00:00
Jonas Maebe
10158da60e * give an error when trying to use the offset of a non-byte-aligned field
of a bitpacked record in assembler code
  * convert the offsets of byte-aligned fields of bitpacked records from bits
    to bytes (mantis #13563)

git-svn-id: trunk@13027 -
2009-04-23 17:27:44 +00:00
joost
6fc0f8f0d7 * Patch from Atilla Borka to add TCustomModule.Request and .Response properties (bug 13287)
git-svn-id: trunk@13026 -
2009-04-22 21:04:59 +00:00
Jonas Maebe
2465126f60 * also check that nested procedures don't have any nested procedures
of their own that are marked as inline, instead of only doing so
    for non-nested procedures (mantis #13553)

git-svn-id: trunk@13025 -
2009-04-22 15:12:42 +00:00
Jonas Maebe
02b14b2d5d * don't free deref info after using it, because it may be needed again
again later (in case of recompilations with circular unit references)
    (mantis #13323)

git-svn-id: trunk@13024 -
2009-04-22 14:52:27 +00:00
Jonas Maebe
a4bf91001e * fixed location_free() for locations consisting of multiple
physical registers
  * free the physical return registers at the caller side for 64 bit
    systems
  * make sure that we do not double-free registers in case a return
    value is not used (mantis #13536)

git-svn-id: trunk@13023 -
2009-04-20 18:57:49 +00:00