Commit Graph

33096 Commits

Author SHA1 Message Date
Jonas Maebe
01a7da9817 * renamed constant "a" to GL_DEPTH24_STENCIL8_EXT (accidentally changed
after applying patch from #18054, belongs with r16442)

git-svn-id: trunk@16479 -
2010-11-29 22:34:24 +00:00
florian
d99081fa47 + additional test
git-svn-id: trunk@16478 -
2010-11-29 21:18:59 +00:00
florian
f570934b45 * patch by Aleksa Todorovic to fix generic interfaces, resolves #16100
git-svn-id: trunk@16477 -
2010-11-29 21:13:09 +00:00
paul
8a5c99599e compiler: skip functions symtables while generating generic specialization symtable stack (fixes test tw12249.pp and bug #0012249)
git-svn-id: trunk@16476 -
2010-11-29 14:50:04 +00:00
Jonas Maebe
5cbe12c622 * don't overwrite the target value of interlockedcompareexchange*() if the
value is different from the comparand (patch by "FVI", mantis #18082)
  * sign extend the loaded value of interlockedcompareexchange() on PowerPC64,
    because the function arguments are longints

git-svn-id: trunk@16475 -
2010-11-29 12:53:10 +00:00
florian
7d1627e9ca * patch by Aleksa Todorovic to handle access to types inside generics correctly
when they are used as class variables, resolves #18096

git-svn-id: trunk@16474 -
2010-11-29 09:37:09 +00:00
paul
0d57d38d7c compiler: fix visibility of inherited protected members (mantis #0018087) and strict private/protected members (mantis #0018085) to nested classes
git-svn-id: trunk@16473 -
2010-11-29 04:08:00 +00:00
florian
a0c25dc0f9 - removes Thread_count from the system unit of several OSes: the value of this variable was unpredictable and the hebaviour was not fixable, resolves #18089
git-svn-id: trunk@16472 -
2010-11-28 20:46:50 +00:00
florian
6b42ba170b + TFPGObjectList.GetEnumerator and TFPGInterfacedObjectList.GetEnumerator, resolves #18094
git-svn-id: trunk@16471 -
2010-11-28 20:32:35 +00:00
florian
97ac6ab928 + test for #17184
git-svn-id: trunk@16470 -
2010-11-28 20:23:45 +00:00
michael
066a9330fb * Added patch from Darius Blaszijk to be less verbose by default
git-svn-id: trunk@16469 -
2010-11-28 20:19:02 +00:00
michael
6954c0a598 * Added WaitFor to fix 18044
git-svn-id: trunk@16468 -
2010-11-28 20:15:22 +00:00
michael
df8413a422 * Applied patch from Darius Blaszijk to implement fpdoc building
git-svn-id: trunk@16467 -
2010-11-28 19:39:05 +00:00
pierre
cf9a7cda1c * First try to support 64-bit cpu's
git-svn-id: trunk@16466 -
2010-11-28 19:35:43 +00:00
florian
f15141a6f3 - removes 2.2.x bootstrapping stuff
git-svn-id: trunk@16465 -
2010-11-28 17:29:15 +00:00
joost
b5e590e732 * Added ability to override which files should be stored in the archive of a package
git-svn-id: trunk@16464 -
2010-11-28 17:12:34 +00:00
joost
cedede9e81 * Do not handle packages twice, when they are passed on the command line
git-svn-id: trunk@16463 -
2010-11-28 17:08:39 +00:00
joost
94e9d5ebb8 * Added TPackage.IsFPMakeAddIn, when this flag is set, the package can be
needed when compiling fpmake.pp files. 
 * Pass -dCOMPILED_BY_FPPKG to the compiler when compiling fpmake files. This
   is used to show better error-messages when a fpmake-addin is missing
 * FPMKUnitDeps is not a constant anymore, but a variable, so that extra 
   dependencies for the fpmake.pp files can be added. (The add-ins)
 * Added TFPMKUnitDep.Def, so that it canbe detected is an AddIn is available

git-svn-id: trunk@16462 -
2010-11-28 13:01:05 +00:00
joost
141dc50adc * Fixed mem-leak
* Added BuildEngine.CmdRenameFile
 * Added TPackage.IsFPMakeAddIn, when this flag is set, the package can be 
   needed when compiling fpmake.pp files. 
 * Added ability to override TCustomInstaller.Packages
 * GetInstallFiles and GetInstallSourceFiles are virtual now

git-svn-id: trunk@16461 -
2010-11-28 12:26:06 +00:00
florian
e4ecee317e * finer grained convert levels for strings, prefers widestring<->unicodestring over other conversions, resolves #18075
git-svn-id: trunk@16460 -
2010-11-28 10:05:09 +00:00
florian
b1a6ec532d * fix bootstrapping with 2.4.2
git-svn-id: trunk@16459 -
2010-11-27 21:28:45 +00:00
sergei
099df04a5e * variants.pp, patch from Ivan Shikhalev implementing TInvokeableVariant.DispInvoke (with some changes), resolves #17919.
git-svn-id: trunk@16458 -
2010-11-27 19:34:39 +00:00
sergei
3b910d9eb2 + Support custom variants in VarIsClear
* TCustomVariantType.IsClear simply returns False (since its VType can never have values for standard variants)

git-svn-id: trunk@16457 -
2010-11-27 18:07:10 +00:00
sergei
7dd93b1282 * Variant types: renamed varunicodestring to varustring and changed its value to $102 (for Delphi compatibility), introduced varUStrArg=$73, added some description comments.
* ncal.pas, translate_disp_call:
  * pass UnicodeString as varUStrArg
  * do not typecast ordinal consts to Integer, so typecasts in source (if any) are preserved.
+ test for correct passing of Dispatch method arguments, concludes work on Mantis #17904.

git-svn-id: trunk@16456 -
2010-11-27 16:17:43 +00:00
ivost
5f39d255e1 * added TFPGMapInterfacedObjectData: This generic class expects a TInterfacedObject as type of TData. The advantage over TFPGMap is, that refcounting is used. It's compareable to TFPGInterfacedObjectList. Note that this only works within the TData part, TKey is not refcounted!
git-svn-id: trunk@16455 -
2010-11-27 16:02:01 +00:00
pierre
fd2b777435 * ogcoff.pas:
{ Direct 32 bit sign extended,
        win64 mingw GNU compiler
        also generates this type
        inside coff objects
        We assume they are equivalent to
        IMAGE_REL_AMD64_ADDR32  PM 2010-11-27 }

git-svn-id: trunk@16454 -
2010-11-26 23:46:49 +00:00
pierre
110e3a6988 * improve script
git-svn-id: trunk@16453 -
2010-11-26 23:35:34 +00:00
pierre
e5e5cfdc2a * Try to fix VideoMode change problem
git-svn-id: trunk@16452 -
2010-11-26 23:34:14 +00:00
pierre
aaa34343eb * Try to get win64 to work
git-svn-id: trunk@16451 -
2010-11-26 23:32:08 +00:00
michael
10f25d6605 * Added flush to TBase64Encoder
git-svn-id: trunk@16450 -
2010-11-26 16:19:26 +00:00
Jonas Maebe
edfb31c020 * when looking for overloaded conversion (assignment) operators, only ignore
those for variants. All defined operators are guaranteed to be valid by
    the code that checks them when they are defined (mantis #17846)

git-svn-id: trunk@16449 -
2010-11-26 15:37:31 +00:00
michael
fa0454afe2 * Fixed references to sub components (mantis #18021)
git-svn-id: trunk@16448 -
2010-11-26 14:51:43 +00:00
Jonas Maebe
11399b9b13 + test from mantis #16365, already works
git-svn-id: trunk@16447 -
2010-11-26 14:38:15 +00:00
Jonas Maebe
eec6d74ac0 * fixed alphablending for drawing freetype fonts on transparent backgrounds
(patch by Darius Blaszijk, mantis #17736)

git-svn-id: trunk@16446 -
2010-11-26 13:21:18 +00:00
michael
74098a8f7d * Fix for bug #18044
git-svn-id: trunk@16445 -
2010-11-26 13:02:55 +00:00
michael
43b6b58ea3 * Fix by Graeme Geldenhuys: map blob subtype 1 to ftMemo
git-svn-id: trunk@16444 -
2010-11-26 12:48:00 +00:00
michael
a8e4234aca * Patch from Graeme Geldenhuys to check for XMLDocument before typecasting it
git-svn-id: trunk@16443 -
2010-11-26 12:44:23 +00:00
Jonas Maebe
3650944d9e + EXT_packed_depth_stencil support (patch by Michalis Kamburelis, mantis
#18054)

git-svn-id: trunk@16442 -
2010-11-26 10:57:48 +00:00
Jonas Maebe
8f22a5d224 * perform simple imul->lea transformations also for Pentium 3-class target
cpus (default target, and should actually be faster there too;
    mantis #18056)

git-svn-id: trunk@16441 -
2010-11-26 10:30:46 +00:00
paul
8aef216f21 compiler: allow nested objects to refence owner class in method arguments (issue #0017986)
git-svn-id: trunk@16440 -
2010-11-26 07:55:55 +00:00
paul
0c23029d8f compiler: add all nested classes to the symtable stack while parsing method header (issue #0017952)
git-svn-id: trunk@16439 -
2010-11-26 07:30:20 +00:00
florian
675c3391d1 * makes compiler report nice error when one tries to use specialize for function result type, based on a patch by Aleksa Todorovic, part of #15875
git-svn-id: trunk@16438 -
2010-11-25 21:45:30 +00:00
michael
cc0be1be4d * Completely initialize threadvars when an external thread is detected. Needs still cleanup code (or a better thread initialization/finalization).
git-svn-id: trunk@16432 -
2010-11-25 15:50:49 +00:00
florian
3d13c2e2be * cleaned up ver2_0 defines
git-svn-id: trunk@16430 -
2010-11-25 14:28:31 +00:00
florian
ef0899425b * adds assign methods to the fgl classes based on a patch by Aleksa Todorovic, resolves #10479
git-svn-id: trunk@16429 -
2010-11-25 14:12:13 +00:00
ivost
e770bc597f * fixed refcounting problem. When copy an item over an existing one, the existing one was not dereferenced
* removed some old (useless) commented code

git-svn-id: trunk@16424 -
2010-11-24 23:08:12 +00:00
florian
d30952b408 * patch by Aleksa Todorovic which adds the ability to reference current generic class. Each reference to current generic class is "translated" to appropriate specialization of that generic class. There are two tests as part of the patch to test that it works. The patch, also, rejects declaring generic inside another generic. 0010479 is easy to implement with this patch applied, resolves #11777
git-svn-id: trunk@16423 -
2010-11-24 21:57:41 +00:00
Jonas Maebe
1f61b5b30c * reverted the rtl patches from r14184, because they cause an endless
loop when attempting to terminate a process via the RTL compiled into
    a Linux shared library  (mantis #17383)
  * call FPC_LIB_EXIT (the internal/generic RTL finalisation routine) instead
    of FPC_SHARED_LIB_EXIT (the Linux-specific "process exit" code for shared
    libraries) as "fini" routine (fixes #14958 again after reverting r14184)

git-svn-id: trunk@16418 -
2010-11-24 15:33:29 +00:00
Jonas Maebe
1271c221f3 - reverted change accidentally committed as part of r16050 that could break
internal resources on 32 bit Darwin platforms with small programs

git-svn-id: trunk@16417 -
2010-11-24 11:03:11 +00:00
Jonas Maebe
c44d79f3ba * fix the value of the frame pointer for Thumb-2 after r14317
(patch by Jeppe Johansen, mantis #18025)

git-svn-id: trunk@16416 -
2010-11-24 10:07:49 +00:00