Commit Graph

30359 Commits

Author SHA1 Message Date
yury
2b3a54cec0 * Allow usage of internal linker when dwarf debug info is used.
git-svn-id: trunk@13094 -
2009-05-04 10:19:54 +00:00
yury
9d78ca3f19 * RELOC_SECREL32 must be relative to EXE section, not to object file section.
* Write zero to relocs in debug sections, which point to unused sections, eliminated by linker.
* It seems internal linker creates correct dwarf debug info now.

git-svn-id: trunk@13093 -
2009-05-04 09:42:51 +00:00
yury
50060dfd52 * Do not assume sizeof(pint) section alignment if no alignment is specified for the section.
git-svn-id: trunk@13092 -
2009-05-04 08:27:36 +00:00
marco
6f1f21c432 * optbase empty skeleton removed with two dependancies. Duplicate unit name caused problems.
git-svn-id: trunk@13091 -
2009-05-03 21:31:33 +00:00
joost
ce55400037 * Call UpdateServiceIndexDefs before Execute, to avoid problems with databases which do not allow processing multiple recordsets at a time (MS SQL, bug #13241)
git-svn-id: trunk@13090 -
2009-05-03 21:01:31 +00:00
joost
8babc4920c * Fix for streaming TSQLQuery.SQL and TSQLTransaction.Params
git-svn-id: trunk@13089 -
2009-05-03 20:47:52 +00:00
yury
070fa422b5 * Partially reverted r12648. PE flags should be set in main PE header (and it is done already). LoaderFlags in optional header are obsolete.
git-svn-id: trunk@13088 -
2009-05-03 14:43:46 +00:00
Jonas Maebe
9ab6e355a3 * Miscellaneous is with two l's...
git-svn-id: trunk@13087 -
2009-05-03 11:48:30 +00:00
Jonas Maebe
2706eeafcf * comment change: Playthingies -> Miscelaneous
git-svn-id: trunk@13086 -
2009-05-03 08:17:02 +00:00
Jonas Maebe
9344484ea7 * allocregbetween has to update the "initialregs" parameter, because it
can remove regallocs for the allocated register and reinstert them
    before already processed instructions, thereby preventing the
    peephole optimizer from ever seeing the allocation for this register
    (mantis #13612)

git-svn-id: trunk@13085 -
2009-05-02 22:26:24 +00:00
Jonas Maebe
445c842db3 * made ifthen() declaration in strutils Delphi-compatible (removed overloads
that cause various problems, added "overload" directive so it gets
    overloaded next to the routines in the "math" unit) (based on patch
    by Alexander S. Klenin, mantis #13619)
  - removed "inline" from that function because all the reference increasing/
    decreasing in its body mainly cause code bloat and little if any speed
    increase

git-svn-id: trunk@13084 -
2009-05-02 15:50:41 +00:00
yury
4da38a7723 * API records are not packed on wince. Bug #13614.
git-svn-id: trunk@13083 -
2009-05-02 14:22:55 +00:00
yury
57e49c4bb9 * Fixed AV in SysErrorMessage() when there is no message string corresponding to a error code. Bug #13617.
git-svn-id: trunk@13082 -
2009-05-02 14:15:50 +00:00
yury
f59d1b1b0b * Added UnicodeString helpers to widestring manager for wince. Bug #13057.
git-svn-id: trunk@13081 -
2009-05-02 13:59:39 +00:00
micha
c9bea201ce * heaptrace: fix calculation of expected free heap
git-svn-id: trunk@13080 -
2009-05-02 13:48:23 +00:00
Jonas Maebe
5a09f58526 * only allow implicit type conversions from dynamic arrays to voidpointer
in Delphi mode, rather than to any pointer type (confused overload
    selection in mantis #13639)

git-svn-id: trunk@13079 -
2009-05-02 12:50:14 +00:00
yury
80fe51380d * Removed unused private fields TThread.FMethod and TThread.FSynchronizeException.
* Removed all code of TThread.Synchronize() for BeOS, since existing code is copy/paste from win32 code and does not work anyway.

git-svn-id: trunk@13078 -
2009-05-02 12:09:30 +00:00
Jonas Maebe
f6d452c2c0 * remove the RTL's installed signal handlers at the end of the system
unit's initialization code in case we're in a library
  + implemented InquireSignal(), AbandonSignalHandler(), HookSignal() and
    UnhookSignal() in the sysutils unit
  * for Kylix compatibility, these routines support operating on
    SIGINT and SIGQUIT as well, although they are not hooked by default
    by FPC. The run time errors/exception codes for these signals are
    resp. 217 and 233 (same as in Kylix; I changed ENoWideStringSupport
    to 234).
  * changed the BSD syscall version of fpsigaction to use pointer
    rather than "var" arguments (compatible with other targets, and
    required to be able to pass nil arguments inside the system unit)
  -> together fixes mantis #12704

git-svn-id: trunk@13077 -
2009-05-02 09:40:44 +00:00
Jonas Maebe
dcb1046b98 * moved core logic from fpc_shortstr_enum into a separate function, so
it can be reused in fpc_write_text_enum (currently it duplicates that
    code). I seem to have lost my corresponding changes to text.inc though,
    so removing the duplicate code will be for another time.

git-svn-id: trunk@13076 -
2009-05-02 08:48:48 +00:00
Jonas Maebe
d89eedf38d * support varbyref and vararray (the latter if convertable to a single
element of its element type) in TBinaryObjectWriter.WriteVariant
    by letting variantmanager handle their conversion transparently

git-svn-id: trunk@13075 -
2009-05-02 08:28:42 +00:00
Jonas Maebe
99a02a93ca * also consider the search attributes for findfirst if the name does
not contain wildcards + test
  * don't return true from FindGetFileInfo if the file name is ok, but the
    search attributes don't match (resulted in returning multiple times the
    name of the previous entry that did fulfill all requirements)

git-svn-id: trunk@13074 -
2009-05-01 16:03:56 +00:00
Jonas Maebe
dd55947b4b - disabled jump tables for x86_64, because they cause various kinds of
crashes with dynamic libraries (mantis #13628 and related bugs)

git-svn-id: trunk@13073 -
2009-05-01 14:54:38 +00:00
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