Commit Graph

30268 Commits

Author SHA1 Message Date
ivost
2d00cab50c * updated zlib header to version 1.2.3
git-svn-id: trunk@13103 -
2009-05-06 13:10:19 +00:00
ivost
f38c6c609d * implemented TFPGInterfacedObjectList. it's the same as TFPGObjectList but ref counted.
git-svn-id: trunk@13102 -
2009-05-05 12:26:42 +00:00
Jonas Maebe
71ecb3e83b * use a different value to test qword->double conversion, which
is less ambiguous as far as generating the "closest" floating point
    representation is concerned (fixes test on on systems where the max.
    fpu precision is double)

git-svn-id: trunk@13101 -
2009-05-05 10:48:21 +00:00
joost
67dcd3be0b * Allow string-parameters of more then 8000 characters, bug #13530
git-svn-id: trunk@13100 -
2009-05-04 21:36:21 +00:00
yury
16e19aaef3 * Some cleanup.
git-svn-id: trunk@13099 -
2009-05-04 18:45:08 +00:00
yury
9c9462cd5a * Insert DW_AT_low_pc and DW_AT_high_pc attributes for modules on Windows also. It solves debugging problems on Windows with dwarf debug info.
git-svn-id: trunk@13098 -
2009-05-04 18:36:08 +00:00
yury
9acecc0863 * Do not switch to external assembler if dwarf debug info is used.
git-svn-id: trunk@13097 -
2009-05-04 11:20:49 +00:00
yury
b1427bad2e * Fixed internal assembler writer to handle offset calculations with forward symbols involved. Internal assembler can handle dwarf debug info now.
git-svn-id: trunk@13096 -
2009-05-04 11:19:48 +00:00
yury
99917e034d * Fixed visibility notes of some overrode methods.
git-svn-id: trunk@13095 -
2009-05-04 10:24:47 +00:00
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