Commit Graph

519 Commits

Author SHA1 Message Date
evgeny-k
f68967d58f problems with x32/x64 call were fixed 2022-09-19 15:49:35 +03:00
evgeny-k
a732050c7d problems with x32/x64 call were fixed 2022-09-12 16:48:38 +03:00
evgeny-k
922338afa0 0: issue with compiling in delphi7 2022-08-04 23:15:39 +03:00
pjrobin
5f33baadd3
fix for #232 (#257)
Fixing the "Could not call proc" #232
2022-03-02 21:24:10 +01:00
evgenyk2
964d957d3f Delphi 11 support was added 2021-09-16 12:02:37 +03:00
evgenyk2
4a44e94824 Merge branch 'master' of github.com:remobjects/pascalscript 2021-09-16 11:58:04 +03:00
evgenyk2
339371bcfd Delphi 11 support was added 2021-09-16 11:57:52 +03:00
Grzegorz
639f1e2d2c
FPC Fix, missing Anchors properties (#252) 2021-08-25 12:31:51 +02:00
Martijn Laan
689b7a3ac2
Fix ReadParameters not setting parameter parser positions even though ValidateParameters does use them. 2020-12-10 15:37:56 +01:00
evgeny-k
d0c71ab36d events of TPSScript were restored 2020-12-04 16:50:23 +03:00
Martijn Laan
5c701ec81e
Fix 64 bit return values some more, using the correct method which was already used by cdRegister. 2020-10-28 17:26:41 +01:00
Martijn Laan
04f5647ec7
Fix 64 bit return values. 2020-10-01 21:46:00 +02:00
zed
ebf3798c97
fix IPointer type definition (#234) 2020-09-30 13:53:11 +02:00
Rey
63dc2a78e1
Fix for #220 (#221)
* Add support for 'array of _Enum_Type_'  types for registered methods.


This will also add support for 'array of Boolean' type, as Boolean considered as enum in pascal script.

* Fix wrong compilation error pos if happened on the last line after PreProcessor.AdjustMessages (#220)

Fix for #220
We should update Res.Row / Res.Col if Pos is
Item.LineOffset[Item.LineOffsetCount - 1] <= Pos < Item.EndPos
2020-09-30 13:51:47 +02:00
Rey
621e77e550
Improve PreProcessor DEFINE errors descriptions (#222)
* Add support for 'array of _Enum_Type_'  types for registered methods.


This will also add support for 'array of Boolean' type, as Boolean considered as enum in pascal script.

* Improve preprocessor error DEFINE errors desc by adding filename

* Add missing parameter for RPS_DefineTooManyParameters
2020-09-30 13:51:19 +02:00
evgeny-k
41ed958b61 #238. win64 problem with string 2020-09-08 15:59:10 +03:00
evgeny-k
957de21fe8 fpc: INVOKECALL support for arm/aarch64 2020-09-02 16:05:37 +03:00
Martijn Laan
e42274928a
Add optional OnWriteLine2. Can be used to support Step Out debugging. 2020-08-31 07:03:54 +02:00
evgeny-k
ab01a58610 0: eDefines.inc was updated 2020-06-09 15:20:25 +03:00
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