Commit Graph

32981 Commits

Author SHA1 Message Date
marco
3b7bb9da6a * using value instead of avalue does not properly set bound because getvalueasvariant
returns 0.0 if isnull. Mantis 17819, patch from Martin Schreiber.

git-svn-id: trunk@16392 -
2010-11-21 14:46:26 +00:00
sergei
9d8d518029 * translate_disp_call, support passing Variants by-value (still pass a pointer, but reset ByRef bit in CallDesc.Args[]).
git-svn-id: trunk@16389 -
2010-11-20 21:43:15 +00:00
sergei
49013587a9 + comobj.pp, DispatchInvoke and DoDispCallByID: support Variant parameters passed by value, support Int64 and QWord arguments.
git-svn-id: trunk@16388 -
2010-11-20 21:36:29 +00:00
sergei
907e7a32d5 * GetFileHandle(), THandleStream: changed type that is used to store file handle from Integer to THandle, so it can be redefined to 64 bits on certain platforms, see http://lists.freepascal.org/lists/fpc-devel/2010-November/023019.html
git-svn-id: trunk@16383 -
2010-11-20 12:58:53 +00:00
joost
eb698a6d9a * Fixed type in THTMLContentProducerClass name
* Added TJavaScriptStack.Redirect
 * Added TWebController.AddrelativeLinkPrefix

git-svn-id: trunk@16374 -
2010-11-19 14:57:44 +00:00
joost
8fa8a466b1 * Made WebPage.IsAjaxCall public
git-svn-id: trunk@16373 -
2010-11-19 14:50:41 +00:00
joost
144672ffd8 * Process request variables for a HEAD request as if it is a GET request
git-svn-id: trunk@16372 -
2010-11-19 14:45:37 +00:00
joost
8c836d1d1a * Added TRequest.LocalPathPrefix property
git-svn-id: trunk@16371 -
2010-11-19 14:44:34 +00:00
paul
23e74d5d46 rtl: fixed typo in variants.pp noticed by Ivan Shikhalev (mantis #0017983)
git-svn-id: trunk@16368 -
2010-11-19 03:19:52 +00:00
Jonas Maebe
a5473c33cc * part of r16347, forgot to commit
git-svn-id: trunk@16367 -
2010-11-18 22:41:42 +00:00
sergei
cbdc08b641 * dynlibs.pas: added 'const' modifiers to eliminate unnecessary local string copies
git-svn-id: trunk@16366 -
2010-11-18 22:09:48 +00:00
sergei
ba700ad2ff * Improvements to Dispatch call handling:
o All signed and unsigned ordinal types are made automatable.
  o Non-automatable types are rejected when parsing dispinterface declarations.
  o Simplified translate_disp_call() a bit.
  o translate_disp_call() now supports non-automatable parameters which can be typecasted to automatable ones. UnicodeString is not yet there, though.
  o Partially fixes #17904: parameters of Variant Dispatch calls are passed by reference when they can be mapped to a variable.

git-svn-id: trunk@16360 -
2010-11-18 16:17:50 +00:00
sergei
532f8b9ab5 * Type Word maps to variant type varword, not varqword (probably a typo).
git-svn-id: trunk@16359 -
2010-11-18 07:24:37 +00:00
paul
4036be1221 rtl: add IO_REPARSE_TAG constants
git-svn-id: trunk@16358 -
2010-11-18 04:06:49 +00:00
paul
f0c3084bee shlobj: add more SHARD_ constants
git-svn-id: trunk@16357 -
2010-11-18 01:47:12 +00:00
pierre
969c81b60f * Fix DEBUG go32v2 compilation error
git-svn-id: trunk@16356 -
2010-11-17 16:14:08 +00:00
pierre
74e1e4c7ba * Remove go32v2 skiptarget for working tests
git-svn-id: trunk@16354 -
2010-11-17 13:30:01 +00:00
marco
485bc5a5b2 * patch from Paul, fixes 17958, newer Vista/W7 interfaces for dialogs.
git-svn-id: trunk@16353 -
2010-11-17 13:07:43 +00:00
paul
a8deeaa168 compiler: fix search of outer class type inside inner type declarations (bug #0017945)
git-svn-id: trunk@16352 -
2010-11-17 05:51:54 +00:00
paul
d99b4ae7c1 compiler: set moduleid for record symtables and descendants (fixes bug #0017950)
git-svn-id: trunk@16351 -
2010-11-17 02:40:41 +00:00
sergei
2d860e356c * Fixed parameter generation for dispatch calls: assuming that everything is passed by reference and needs only sizeof(ptruint) bytes is wrong. 64-bit primitive types (Double,Int64) are passed by value and require twice more space on 32-bit platforms.
git-svn-id: trunk@16350 -
2010-11-16 11:55:09 +00:00
joost
6a4ea03acb * Added FPMakeOptions to the global configuration file, to pass custom options to fpmake
git-svn-id: trunk@16349 -
2010-11-14 19:29:26 +00:00
joost
4c00ab84f1 * Added option to ignore further invalid options
* Fixed AV when showing command-line options when no custom options are present

git-svn-id: trunk@16348 -
2010-11-14 19:25:13 +00:00
Jonas Maebe
c14574bb56 * don't change the fpu control word in the initialisation code of dynamic
libraries (mantis #16263, #16801)

git-svn-id: trunk@16347 -
2010-11-14 16:00:25 +00:00
joost
c53b2a871b * Added ability to add custom command-line options for fpmake
git-svn-id: trunk@16346 -
2010-11-14 15:16:34 +00:00
joost
bf355db3fe * Added ability to specify absolute paths to install files into
git-svn-id: trunk@16345 -
2010-11-14 13:07:21 +00:00
Jonas Maebe
d36f8ac542 * fixed potential buffer overflow error when creating the fullprocname for
display purposes if there was a parameter with a default value > 255 chars
  * replace #0, #10 and #13 in the fullprocname with '.' so they do not cause
    line breaks or early string termination when writing them to the
    assembler file (mantis #17928)

git-svn-id: trunk@16344 -
2010-11-14 12:18:48 +00:00
Jonas Maebe
fdfb21387f * fixed potential buffer overflow errors (reported by Stian Skjelstad,
mantis #17922)

git-svn-id: trunk@16343 -
2010-11-14 11:59:24 +00:00
pierre
365c0d82bf * Fix windows code to avoid closing unopened files
git-svn-id: trunk@16342 -
2010-11-14 10:38:03 +00:00
joost
af40e489dc * Make sure that the value of ActionVar is passed as actionname to the OnGetAction event
git-svn-id: trunk@16341 -
2010-11-13 21:16:29 +00:00
joost
c4cd67c782 * Set the version in the Makefile.fpc from the fcl-db sub package base so that
a Package.fpc is generated. There is no Package.fpc generated for the main
   fcl-db package because there are no ppu-files generated. A Package.fpc (even
   if it is invalid) is necessary for fpmake to detect the fcl-db installation.

git-svn-id: trunk@16340 -
2010-11-13 20:47:01 +00:00
Jonas Maebe
0cb2fa1baf + semtimedop() for Linux, marked as "platform" (last part of patch from
mantis #14075)

git-svn-id: trunk@16339 -
2010-11-13 18:37:43 +00:00
marco
57e38d3466 * moved taskdialog to commctrl
git-svn-id: trunk@16338 -
2010-11-13 18:32:11 +00:00
marco
83d92fb0fc * Copied TaskDialog headers from Lazarus' win32extra at Paul's request.
git-svn-id: trunk@16337 -
2010-11-13 18:02:53 +00:00
Jonas Maebe
36aa39cc38 o fixed several Linux ipc bugs, based on patch by Ruben Chaer/
Pablo Alfaro (mantis #14075, also fixes #13363):
    * ipc msgtyp is clong, not cint
    * TIPC_Perm and TSEMid_ds are different on 64 bit systems
    * fixed passing semun arguments (have to be passed by value, not reference)
    * fixed the order of parameters to msg* syscalls, and don't use
      TIPC_Kludge for msgrcv syscall (only for ipccall.inc variants)
    * use new operation variants on 64 bit platforms in ipccall.inc
  * introduced use kernel_mode/uid/gid_t types for use by the Linux ipc
    records
  * fixed type of TSEMid_ds.sem_base for Darwin
  * added {$packrecords c} to ipc unit, and {$packrecords 4} around
    certain structs for Darwin as in the C headers
  * fixed passing semun argument to semctl for libc platforms (by
    value, not reference)

git-svn-id: trunk@16336 -
2010-11-13 16:58:23 +00:00
michael
5cdc3c3a29 * Correction of PAFProtocols (Ivan Shikhalev, bug ID #17924
git-svn-id: trunk@16335 -
2010-11-13 15:51:43 +00:00
Jonas Maebe
085e5fc65a + forgotten to add/commit in r16332
git-svn-id: trunk@16334 -
2010-11-13 13:04:37 +00:00
marco
1beef3f3f5 * fixed exceptionhandling scanner (2nd attempt to load file was not in an try..except). Bug reported on German laz forum
git-svn-id: trunk@16333 -
2010-11-13 11:30:29 +00:00
Jonas Maebe
9248019e12 * enable OpenCL for Linux (patch by Denis Golovan, mantis #17917)
git-svn-id: trunk@16332 -
2010-11-12 22:16:28 +00:00
Jonas Maebe
dbfcb2d5b8 - removed darwin-specific external name for printf, no longer required after
r16330

git-svn-id: trunk@16331 -
2010-11-12 22:08:15 +00:00
pierre
2003c2af70 * In MacPas mode, externals have realname with target_info Cprefix
git-svn-id: trunk@16330 -
2010-11-12 22:00:46 +00:00
Jonas Maebe
de51c4734c * fixed searching for the 8-character variant of already compiled
unit files (patch by Aleksa Todorovic, mantis #17907)

git-svn-id: trunk@16329 -
2010-11-12 12:10:41 +00:00
Jonas Maebe
44dc6e7283 * also look for a source file ending in .p when checking whether the sources
of a pre-compiled unit are available on tf_p_ext_support systems
    (patch by Aleksa Todorovic, mantis #17907)
  * fixed indentation/flow of this and a similar check elsewhere

git-svn-id: trunk@16328 -
2010-11-12 11:50:40 +00:00
pierre
a11ec43ca5 * add missing go32v2 GCC compiled objects
git-svn-id: trunk@16327 -
2010-11-11 22:48:56 +00:00
tom_at_work
ca78f68b33 Remove linux only "Pascal-style" variants of pthreads header translation
git-svn-id: trunk@16326 -
2010-11-11 18:45:42 +00:00
joost
8cc449b955 * Added Makefile.fpc which uses fpmake
git-svn-id: trunk@16325 -
2010-11-11 10:33:47 +00:00
pierre
3063ad5c9a * Skip test for go32v2 target, not supported and triggers NTVDM messagebox
git-svn-id: trunk@16324 -
2010-11-10 22:44:44 +00:00
sergei
bd15329d38 * variants.pp, modified TCustomVariantType constructors to they pass basic tests (tests/units/variants/tcustomvariant.pp)
* Changed allowed custom VarType range to $10F..$FFF (as specified in Delphi documentation).

git-svn-id: trunk@16323 -
2010-11-10 16:27:23 +00:00
sergei
a360f4c955 + Added a basic test for TCustomVariantType creation functionality.
git-svn-id: trunk@16322 -
2010-11-10 16:21:19 +00:00
Jonas Maebe
dd88644237 * record the vmt_offset as the actual offset of the vmt field, so that
it correctly reflects the alignment of the object symtable (mantis
    #16034)

git-svn-id: trunk@16321 -
2010-11-10 15:58:47 +00:00