Commit Graph

488 Commits

Author SHA1 Message Date
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
Chee-Yang, Chau
40efb694c1 Re-align PascalScript_Core_D24.dpk and PascalScript_Core_D24.dproj compiler directives (#138) 2016-05-24 16:43:06 +02:00
Chee-Yang, Chau
4867683ff4 Fix compiling error: "E2056 String literals may have at most 255 elements" in unit uPSI_Dialogs.pas line 163. (#137) 2016-05-24 11:19:18 +02:00
Carlo Kok
19470174dd Merge pull request #135 from uschuster/master
Pull request for #122
2016-05-13 14:51:16 +02:00
Uwe Schuster
57d7291d92 Fix for #122
- Fixed case of registered symbols using the case in Delphi sources
- Fixed formatting in method signatures
- put registration across multiple lines onto one line

    "...GAMONSERV'
     +'ER )');"

    -> "...gamOnServer)');"
2016-05-13 14:34:11 +02:00
uschuster
8416d44d61 Merge pull request #1 from remobjects/master
Update from master
2016-05-13 14:02:24 +02:00
evgeny-k
c56385ecc0 fix for delphi7 2016-04-22 12:39:06 +03:00
Carlo Kok
4d5adcd119 Merge pull request #134 from Falcon0/FPC3Fixes
Fixed FPC3 compatibility
2016-04-17 15:37:40 +02:00
Tomek Kołosowski
6eaef325fb Fixed FPC3 compatibility 2016-04-17 00:21:50 +02:00
evgeny-k
dd56475f06 Support for Delphi Seattle 10.1 was added 2016-04-15 13:16:26 +03:00
Carlo Kok
2c6e487e30 Merge pull request #130 from Falcon0/master
Fixed function VarType not exported in runtine in FPC
2016-03-01 08:41:29 +01:00
Tomek Kołosowski
d06ea36c61 Fixed function VarType not exported in runtine in FPC 2016-02-09 21:27:57 +01:00
Carlo Kok
2c0bde188a Merge pull request #127 from mariuszekpl/master
fix single and double result in fpc x64 linux (replace movd by movq)
2015-12-13 17:59:07 +01:00