Commit Graph

475 Commits

Author SHA1 Message Date
Martijn Laan
c6b25ca427 Fix 7e96130b. 2024-06-28 10:20:10 +02:00
Martijn Laan
0d585814ef Fix 1cabc173. 2024-06-06 08:45:47 +02:00
Martijn Laan
1cabc1730b Improve previous: Use AnyString instead of const because types like Integer don't work because of the lack of 'var' in the prototypes. Putting 'var' + 'const' does not work at run time and was not able to fix this. Also improve AnyString: the compiler didn't actually check that an AnyString parameter in the call was actually a string type, instead it accepted any type as if the prototype said 'const'. 2024-05-15 18:17:39 +02:00
Martijn Laan
7e96130ba6 Fix two TStream issues: 1) It's not abstract anymore. Don't know since when exactly but at least in Sidney it's not abstract. 2) Read/Write(Buffer) prototype is bad and very impractical on Unicode. Make it like it really is: they accept a var of any type and this can be done in PS by using 'const' as the type and still _not_ using 'var'. Tested it to work unchanged when a string type is used in the call anyway. Also note this fix has no runtime changes so it's not surprising that it still works. 2024-05-15 16:35:17 +02:00
Martijn Laan
405f27a381 Remove really old and non-functional email adress. 2024-05-15 08:07:56 +02:00
evgeny-k
098587c659 Merge branch 'master' of github.com:remobjects/pascalscript 2024-05-14 10:39:38 +03:00
evgeny-k
29622984a4 #267: Array of const broken? 2024-05-14 10:38:14 +03:00
Martijn Laan
f5638ff139 Make this work on Unicode: var S: set of AnsiChar; begin S := ['a', 'b']; end; 2024-05-12 09:07:48 +02:00
Martijn Laan
7d888cda8c Add TLinkLabel from Delphi 2010. 2024-05-10 14:35:40 +02:00
evgeny-k
5530baf4f1 fix for exception support in x64. incomplete 2024-04-09 16:58:30 +03:00
evgeny-k
f5da34521d better x64 support: use class helpers for registration properties and methods 2023-11-17 13:27:50 +03:00
evgeny-k
d5057bb2c6 0: fix for prev 2023-11-15 16:33:50 +03:00
evgeny-k
597d68934e 266: Error when calling delphi function in x64 mode 2023-09-18 14:55:54 +03:00
evgeny-k
3bf2b93a1a D29 packages were added 2023-09-18 14:55:06 +03:00
evgenyk
78c62be048 266: Error when calling delphi function in x64 mode 2023-09-13 13:43:51 +03:00
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
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