Commit Graph

30641 Commits

Author SHA1 Message Date
Jonas Maebe
41acad1d11 + keep track of called virtual methods per unit. -Owoptvtms will now replace
vmt entries of virtual methods that can never be called with references
    to FPC_ABSTRACTERROR. Some virtual methods are always considered to be
    reachable: published methods, and methods used as getter/setter for a
    published property.

git-svn-id: trunk@13238 -
2009-06-06 08:24:36 +00:00
ivost
91ae3e8788 * added TryStringToGuid function (former StringToGuid is using this now)
git-svn-id: trunk@13237 -
2009-06-05 20:35:12 +00:00
ivost
db429f2d48 * added GUID_NULL constant
git-svn-id: trunk@13236 -
2009-06-05 20:23:38 +00:00
yury
3b32571557 * Fixed compilation for win64. ThreadID is DWORD on both win32 and win64.
git-svn-id: trunk@13235 -
2009-06-05 14:59:42 +00:00
ivost
b5be9e008e * added GuidCase function to intf/guid helper functions
git-svn-id: trunk@13234 -
2009-06-05 14:36:43 +00:00
marco
9a9b05b683 * file not added in earlier commit, and was forgotten.
git-svn-id: trunk@13233 -
2009-06-04 07:49:25 +00:00
marco
d87ba9d285 * multimon added (From Paul Ishenin), renamed dwmapi extension to .pp
git-svn-id: trunk@13232 -
2009-06-03 13:52:34 +00:00
yury
fed5ef7c23 * Added declaration of GlobalReAllocPtr() for wince. Bug #13897.
git-svn-id: trunk@13231 -
2009-06-03 09:28:18 +00:00
sergei
e66e35ac2c XPath: reducing memory load:
* Store predicates of TStep and TXPathFilterNode in dynarrays instead of TList, this way we allocate
  only as much memory as needed, and allocate anything only when predicates are actually present
  (that's minority of all cases).
* Eliminated intermediate TList in filtering step results.
* Remaining TList's replaced by TFPList's.
* Fixed ordering of nodes on preceding-sibling axis.

git-svn-id: trunk@13230 -
2009-06-03 09:09:53 +00:00
sergei
3327371e24 + Implemented DOM level 3 method TDOMNode.LookupNamespaceURI().
* Default attributes which have a colon in name now get a namespace assigned upon restoring. This
  fixes remaining level 2 testsuite failures.

git-svn-id: trunk@13229 -
2009-06-02 13:56:24 +00:00
sergei
32b98580fa + Namespace support in TDOMElementList, makes GetElementsByTagNameNS() operational.
+ Modified TDOMImplentation.HasFeature to return True for level 2 features.

Now the DOM Level 2 support is fairly complete (1 error and 1 failure still remain).

git-svn-id: trunk@13228 -
2009-06-01 21:19:36 +00:00
sergei
c5114c7423 * Modified TDOMNodeList. It now has a fixed BuildList procedure which iterates descendant nodes,
calling NodeFilter for each node. The NodeFilter return value determines whether the node will
  be added to the list, and whether node's children should be recursively iterated.
  This considerably simplifies creating TDOMNodeList descendants, as they no longer need to mess
  with the class internals (FRevision, FList, etc).

git-svn-id: trunk@13227 -
2009-06-01 20:55:18 +00:00
sergei
2cd0a1ad27 + Part of DOM level 2 namespace support (handling namespaced attributes)
* Cloning/importing attributes and elements preserves their namespaces
* Importing an element does not import non-specified attributes.
+ Separate, much faster, implementation for element cloning.

git-svn-id: trunk@13226 -
2009-06-01 19:43:34 +00:00
florian
398b5806b1 * TCollectionItem.Changed checks update counter of collection, resolves #13813
git-svn-id: trunk@13225 -
2009-06-01 16:09:56 +00:00
michael
38be92f20e * Fixed TTarget.HaveOptions
git-svn-id: trunk@13224 -
2009-06-01 15:09:20 +00:00
michael
163eea05fd * Options is now a stringlist
git-svn-id: trunk@13223 -
2009-06-01 14:57:30 +00:00
florian
88f6b8854e * proper error handling in case of thread creation failure on windows, resolves #13768, no test case due because such a test is too sensitive regarding race conditions etc. and might cause false failures
git-svn-id: trunk@13222 -
2009-06-01 14:17:01 +00:00
marco
287758598e * dwmapi api (Glass and stuff) added. From Paul Ishenin.
git-svn-id: trunk@13221 -
2009-06-01 09:22:25 +00:00
Jonas Maebe
0daaaf5d3b * fixed compilation after r13217 (some 2.2.x-isms)
git-svn-id: trunk@13220 -
2009-06-01 08:08:16 +00:00
Jonas Maebe
66c14c8a88 * don't mark classes used in "is"- or "as"-expressions as potentially
instantiated (for wpo)
  * also replace vmt-entries for classes for which we don't have any
    information at all with FPC_ABSTRACTERROR (since that means they
    certainly are not instantiated), except for their published and
    virtual class methods
  * fixed check for published methods in wpo

git-svn-id: trunk@13219 -
2009-05-31 13:52:40 +00:00
Jonas Maebe
380e957a79 * init wpo collectors before parsing the interface of units
* also register classes assigned to classref typed constants as potentially
    instantiated

git-svn-id: trunk@13218 -
2009-05-31 13:37:15 +00:00
Legolas
d2dabe9a33 * updated nds/gba linker scripts and reverted some changes for 2.2.4a release
- Removed unused/outdated stuff from libndsfpc
+ Added new examples for libndsfpc
+ Added working (I hope so...) makefile.fpc for all libndsfpc/libgbafpc examples

git-svn-id: trunk@13217 -
2009-05-31 12:15:24 +00:00
sergei
baa07b1a22 Bringing readme's up to date
git-svn-id: trunk@13216 -
2009-05-31 10:38:28 +00:00
sergei
466c41da12 * Added .txt extension to README_DOM (this one was missed while fixing Mantis #12358)
git-svn-id: trunk@13215 -
2009-05-31 09:14:37 +00:00
sergei
b631754754 + Processing of prefixed attributes and prefix bindings. This completes namespace support at
the XML reader side.

git-svn-id: trunk@13214 -
2009-05-31 08:18:06 +00:00
michael
6452f5b692 * Some TCustomVariant methods implemented
git-svn-id: trunk@13213 -
2009-05-30 12:07:16 +00:00
Jonas Maebe
e6bf70fc05 * fixed/cleaned up tests for "nil + 1"
git-svn-id: trunk@13212 -
2009-05-30 11:29:54 +00:00
michael
6fa94ad9d8 * Fix from Ken Wright for broken FPC changes
git-svn-id: trunk@13211 -
2009-05-29 07:30:46 +00:00
michael
ddd02b7f26 * Change so that when FindFirst initially returns nonzero, FindClose is no longer needed (Windows compatible)
git-svn-id: trunk@13210 -
2009-05-29 07:27:41 +00:00
michael
9538da64f9 * Change so that when FindFirst initially returns nonzero, FindClose is no longer needed (Windows compatible)
git-svn-id: trunk@13209 -
2009-05-29 07:24:02 +00:00
florian
d338684196 * patch to fix fillpoly, by borsa77
git-svn-id: trunk@13208 -
2009-05-28 22:28:58 +00:00
Tomas Hajny
2353848004 * extension of r13191 to OS/2, EMX and potential other platforms using crt.inc based implementation of unit crt
git-svn-id: trunk@13207 -
2009-05-27 21:18:35 +00:00
marco
ae3ab174cd * more Vista fixes, and implemented some macro's that somehow were not implemented.
git-svn-id: trunk@13206 -
2009-05-27 20:08:56 +00:00
Jonas Maebe
7e908cb1e3 * forbid "nil +/- ordinal" expressions (Delphi-compatible, and the
expression is meaningless since nil is not a valid address)

git-svn-id: trunk@13205 -
2009-05-27 17:50:55 +00:00
Jonas Maebe
15b0711ca0 * various optimizations by Dave Richards (mantis #12440)
git-svn-id: trunk@13204 -
2009-05-27 17:26:50 +00:00
marco
3af4741b5e * vista items till WC_STATICA, roughly at 80% now.
git-svn-id: trunk@13203 -
2009-05-27 16:26:32 +00:00
marco
baca8ec9b6 * first half of vista updates.
git-svn-id: trunk@13202 -
2009-05-27 08:46:27 +00:00
marco
a10f94a50a * Marquee patch from Paul + some Vista PBM_ constants.
git-svn-id: trunk@13201 -
2009-05-27 07:29:04 +00:00
sergei
cf98a19e8e + Implementation of TDOMDocument.CreateAttributeNS and CreateElementsNS
+ Initial part of TDOMElement.SetAttributeNS
+ TDOMImplementation.CreateDocumentType checks validity of QualifiedName
* Use 'managed' memory allocation in TDOMEntity.CloneNode and TDOMNotation.CloneNode to avoid leaks
* TDOMDocument.RemoveID now using THashTable.RemoveData(), simplifies things

git-svn-id: trunk@13200 -
2009-05-26 22:14:21 +00:00
marco
92e235d92b * tmschema as include file added at Paul's request
git-svn-id: trunk@13199 -
2009-05-26 16:54:49 +00:00
Jonas Maebe
dc00a747f4 * make references PIC-safe before pushing them as parameter (mantis #13829)
git-svn-id: trunk@13198 -
2009-05-26 16:22:41 +00:00
marco
ffc2750cd0 * uxtheme moved from Lazarus.
* Disabled (ifdeffed) lock around init/finalization because of circular
    reference between fcl-base and winunits-base. If needed it can be
    recoded directly using system specific (windows.pas) routines.

git-svn-id: trunk@13197 -
2009-05-26 12:24:58 +00:00
sergei
55e3c6be3a dom.pp: No more failures on level 1 testsuite... at last.
+ Implemented handling of default attributes:
  * creating an element also creates and attaches the default attributes;
  * removing an attribute restores it with default value, if there's one.
+ Attribute nodes remove themselves from the owner element upon destruction, making it possible
  to Free attributes manually.
* TDOMNamedNodeMap.SetNamedItem does not reset attribute OwnerElement if the argument node is already
  contained in the map (and whole operation is therefore is a no-op).

git-svn-id: trunk@13196 -
2009-05-25 20:28:40 +00:00
Jonas Maebe
966ebbf157 * fixed missing reference counting in case a refcounted type was implicitly
type casted to a non-refcounted type, e.g. dynarray to pointer in Delphi
    mode (mantis #13820)

git-svn-id: trunk@13195 -
2009-05-25 19:41:14 +00:00
Jonas Maebe
17a7903e60 * fixed evaluating "nil +/- int_const" expressions (mantis #13815)
git-svn-id: trunk@13194 -
2009-05-25 18:34:04 +00:00
Jonas Maebe
1456e82a6a * make sure example also works without an application bundle
git-svn-id: trunk@13193 -
2009-05-24 12:26:38 +00:00
Jonas Maebe
7f0631d311 * again made less complex in case of PIC, otherwise it fails
git-svn-id: trunk@13192 -
2009-05-24 12:25:33 +00:00
Jonas Maebe
78c29a33ba * changed the parameters of gotoxy() and the return values of wherex/wherey
from byte into tcrtcoord=1..255, since all crt unit coordinates are
    1-based (not for Window() procedure, see comments in crth.inc;
    mantis #13788)

git-svn-id: trunk@13191 -
2009-05-24 11:48:49 +00:00
joost
d39e82b256 * Fixed resource-leak on exceptions during creating/dropping databases, patch from taka_jp, bug #13587
git-svn-id: trunk@13190 -
2009-05-24 11:20:45 +00:00
joost
2435a4a48f * Modified patch from taka_jp to set the connection-dataset for mysql, bug #13588.
git-svn-id: trunk@13189 -
2009-05-24 11:17:59 +00:00