Commit Graph

500 Commits

Author SHA1 Message Date
evgeny-k
29776d8014
Merge pull request #231 from santiagoIT/master
Added support for Delphi 10.4 Sydney
2020-06-09 15:16:29 +03:00
santiagoIT
a0cdccce84 Added support for Delphi 10.4 Sydney 2020-06-08 15:41:26 -05:00
Martijn Laan
f55409add2 Add PS_USECLASSICINVOKE to make it possible to avoid using InvokeCall.inc which was introduced by #207. Alse cleanup the case some of the directives here and make it work on AUTOREFCOUNT. 2020-02-20 15:48:25 +01:00
Martijn Laan
45b18b0259 Fix for #207 which commented this line with no apparent reason + cleanup. 2020-02-20 15:24:37 +01:00
Martijn Laan
530ca86b69 Fix IDispatchInvoke on Unicode. 2020-02-18 21:15:44 +01:00
Chee-Yang, Chau
37158027fb #213: Invoke method consist of extended data type cause access violation (#215) 2019-11-26 09:13:56 +01:00
evgeny-k
b1286c1550 fix from #211 issue 2019-09-30 12:28:56 +03:00
Vizit0r
86a057c868 1)InvokeCall added, instead of all different callers (x86, x64, powerpc etc) for Delphi 2010+. (#207)
Tested on Win x86&x64, Android, MacOS32 - no problems observed.

2) Changes for correct MACOS compilation in Delphi

3) few changes and fixes for correct work on D7.
2019-08-26 06:49:56 +02:00
Vizit0r
51a015cbc5 1) fix of OPENARRAYOFU16 and OPENARRAYOFS16 declarations (#205)
2) DynArray "out of range" errors extended, now included info about curr index and array length
3) uPSUtils - takilng ansi string length from 0 index - changed to correct Length() calling.
4) added names forming for dynarrays when compiling.
2019-08-20 07:24:22 +02:00
Martijn Laan
1f846a56c8 Added call stack functionality. Taken from #203 by Vizit0r, with fixes and cleanup. Does not yet display parameter values, nor does it return position information. 2019-08-15 08:13:39 +02:00
evgeny-k
eff7823c09 0: INLINE_SUPPORT define was added 2019-08-07 13:43:05 +03:00
santiagoIT
e893802668 64 bit builds now use the same VersionInfo as 32 bit builds. Previously the version for 64 bit builds was always 1.0.0.0. (#199) 2019-05-01 06:40:02 +02:00
SB-MBP-2017\Santiago
733da55707 64 bit builds now use the same VersionInfo as 32 bit builds. Previously the version for 64 bit builds was always 1.0.0.0. 2019-04-30 16:59:50 -05:00
Martijn Laan
bcf0f1b1b7 Fix warnings. Again, don't know exactly which version introduced each warning, kept it at Tokyo. 2019-02-03 14:06:51 +01:00
Martijn Laan
5812d520e8 Use TStream.Seek fix on Tokyo as well. 2019-02-03 14:04:52 +01:00
Martijn Laan
7b33a99b24 Add support for TScrollBox/TForm.Constraints. 2019-01-29 20:19:15 +01:00
Martijn Laan
c2ee410b06 Fix the wrong TStream.Seek overload being called (at least in Rio) in the same way TStream.CopyFrom was fixed. Not sure what version introduced the problem so kept it at Rio. Also a cleanup for CopyFrom. 2019-01-23 19:36:46 +01:00
evgeny-k
d5aa9e1eed 0: avoid bug with safecall calls in delphi/linux 2019-01-21 13:14:14 +03:00
Martijn Laan
4ec845b79e Fix PropertyToString wide and Unicode strings bug. 2019-01-15 17:55:01 +01:00
Martijn Laan
3ee6af752a Fix TAnchorKind and add Anchors properties. 2018-12-29 14:53:14 +01:00
Martijn Laan
86b5b61f65 Register TPanel.BevelKind as well. 2018-12-23 19:56:11 +01:00
Martijn Laan
94ffb4b673 Rename ARM readme so it doesn't get picked up as the main Readme by GitHub. 2018-12-19 23:42:50 +01:00
Martijn Laan
b624250b09 Added OnUseRegProc which is called once when a function added with Add(Delphi)Function is used by the script. 2018-12-19 22:54:28 +01:00
Martijn Laan
e4f2e63a47 Add 'AnyMethod' type which can be used to declare functions accepting any type of procedure. 2018-12-16 17:17:32 +01:00
João Antônio Duarte
6549f2f4dd Added functin GetVarValue returning the Pointer of variable (#186) 2018-11-22 06:55:59 +01:00
evgeny-k
fa51611c0d 0: Delphi 10.3 Rio support was added 2018-11-19 12:57:09 +03:00
uschuster
9c266bc6a0 Fix for #183 (#184)
* Fix for #180 (https://github.com/remobjects/pascalscript/issues/180)

- enables VarArrayGet/-Set for Delphi 6 or higher
- since D5 VarArrayGet seems not to be accessible the best solution is to negate $IFNDEF DELPHI6UP into $IFDEF DELPHI6UP

* Fix for #73 (https://github.com/remobjects/pascalscript/issues/73)

Added an InputQuery wrapper because Delphi XE2 and higher have two additional versions of InputQuery, the pointer points to the wrong version and the execution fails with "Length of value array must be >= length of prompt array"

* Fix for #183 (https://github.com/remobjects/pascalscript/issues/183)

Added a wrapper for TStringStream.Create(const AString: string) because Unicode Delphi has multiple constructors and the pointer points to the wrong overload
2018-09-27 12:58:53 +02:00
Martijn Laan
7f3720701f Improved attribute support. Made GetString available outside the unit. 2018-09-03 20:59:24 +02:00
uschuster
7ae032dbc9 Fix for #73 (#182)
* Fix for #180 (https://github.com/remobjects/pascalscript/issues/180)

- enables VarArrayGet/-Set for Delphi 6 or higher
- since D5 VarArrayGet seems not to be accessible the best solution is to negate $IFNDEF DELPHI6UP into $IFDEF DELPHI6UP

* Fix for #73 (https://github.com/remobjects/pascalscript/issues/73)

Added an InputQuery wrapper because Delphi XE2 and higher have two additional versions of InputQuery, the pointer points to the wrong version and the execution fails with "Length of value array must be >= length of prompt array"
2018-07-13 11:21:40 +02:00
uschuster
bdf127534e Fix for #180 (https://github.com/remobjects/pascalscript/issues/180) (#181)
- enables VarArrayGet/-Set for Delphi 6 or higher
- since D5 VarArrayGet seems not to be accessible the best solution is to negate $IFNDEF DELPHI6UP into $IFDEF DELPHI6UP
2018-07-03 13:49:49 +02:00
Martijn Laan
76e377efa5 Add ProcessDllImportEx2 which gives more info back to caller. 2018-04-24 14:37:41 +02:00
Martijn Laan
4b310a0fe3 Fix CopyVariantContents' btwidechar support. 2018-03-24 22:02:48 +01:00
evgeny-k
415353d8db 0: compatibility with latest RO/DA 2017-11-13 12:00:54 +03:00
evgeny-k
90ed5ee62a D25 packages should use D25 folders 2017-11-13 11:31:12 +03:00
Martin
fa55490db0 Fix constructor 64bit (#167)
* use 64bit variant

* Fix registers for FPC constructor

* fix only fpc 3.0.0 and up
2017-10-28 17:12:13 +02:00
Martin
627cf28b33 Update test for 64 bit / fpc: No PS methods (#166) 2017-10-26 17:59:39 +02:00
Martin
2dee370c51 fix compile (#162) 2017-10-26 15:21:17 +02:00
Martin
01ca5c3f4e spelling (#163) 2017-10-26 07:05:08 +02:00
Martin
21b4d44028 lpk add encoding (#164) 2017-10-26 07:04:54 +02:00
Martin
502fe3b0ef fixes for tests (#165) 2017-10-26 07:04:41 +02:00
Rey
69281ba739 Add support for 'array of _Enum_Type_' types for registered methods. (#160)
This will also add support for 'array of Boolean' type, as Boolean considered as enum in pascal script.
2017-10-01 22:53:15 +02:00
Pierre le Riche
8bd6ea180f The TPSTypeRec.CalcSize calculated the element size for base types btProcPtr and btPointer as 20 bytes under 64-bit, however it was assumed to be 24 bytes in several other places, thus leading to buffer overruns. This fix supersedes the patch for issue #150, changing the element size for both base types to 24 bytes and adjusting the code that previously assumed a size of 20 bytes. 32-bit code is not affected, since the element size was (and still is) 12 bytes in all cases. (#152)
An alternative approach would have been to fix all the places that previously treated the element size as 24 (as in the patch for issue #150), however an element size of 20 leads to misaligned pointers in array entries.

Signed-off-by: Pierre le Riche <git@pleasedontspam.me>
2017-06-12 14:45:29 +02:00
evgeny-k
d428ecc59f CPUX64 not implemented MyAllMethodsHandler 2017-06-12 11:15:17 +03:00
evgeny-k
68f9356704 X64 Windows Open Array Buffer Overrun 2017-05-24 12:37:06 +03:00
SungDong Kim
5814bd027d Fixed a character encoding problem of Application.MessageBox method in Unicode Delphi (#146) 2017-02-21 09:42:18 +01:00
evgeny-k
f4a25206ce eDefines.inc was updated 2017-02-09 19:33:11 +03:00
evgeny-k
d2b23c5e6b fix for prev 2017-01-11 14:22:13 +03:00
evgeny-k
ac6adc571e PS: port to Delphi 10.2 2017-01-10 17:24:09 +03:00
Martijn Laan
dded578698 Fix InnerfuseCall memory leak for functions which return a string and use a calling convention other than register. 2017-01-04 12:46:43 +01:00
iferoc
7f43c66501 Pull request for #141 (#142)
Pull request for issue #141 - division of variant variables should return real (with PS_DELHIDIV compiler option)
2016-11-01 13:11:01 +01:00